On Sun, 11 Dec 2016, Henrique Andrade wrote:
To avoid that kind of situation I suggest to return the number as a
array
of strings. So the user can explicit choose what to do. Furthermore, using
array of strings as the return value of the function can help users to
handle the "problem" of decimal comma.
Hmmm, no, sorry.
One more thing: it would be great if we could have a function like
this to
count the number of occurrences of a determined string. Something like this:
string S = "I like Gretl because Gretl is great and Gretl is complete"
scalar N = strscrapec(S, "Gretl") # strscrapc; String scrape counter
# result: N = 3
I don't like very much this either. If you need this sort of things
regularly, then use python. IMO hansl should stay focused on
statistics/econometrics. I can't really see a point in chasing python or
Julia on the data mining field. But I'm open to changing my mind.
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------