Hi
I've become quite fond of using sprintf.
And increasingly often I find myself with a vector of arguments I have to split up in a tedious way.
So far as I can get with my limited ressources the only thing I can do in Stata is:
Is there a smart way of doing something like:
I've become quite fond of using sprintf.
And increasingly often I find myself with a vector of arguments I have to split up in a tedious way.
So far as I can get with my limited ressources the only thing I can do in Stata is:
Code:
v = 12,23,31 sprintf("%f, %f, %f", v[1], v[2], v[3])
Code:
sprintf("%f, %f, %f", v)
Comment