Hi Statalist,
I'm trying to use invtokens() to take a string vector and transform it into a single string. For example
returns "firstelem secondelem". My problem is when an element in the string vector contains a space.
returns "firstelem second elem" (losing the information about where the second element starts and ends).
Does anyone know how I could input ("firstelem","second elem") and have it return "`"firstelem"' `"second elem"'"?
Thank you,
Andrew Maurer
I'm trying to use invtokens() to take a string vector and transform it into a single string. For example
Code:
mata invtokens( ("firstelem","secondelem") )
Code:
mata invtokens( ("firstelem","second elem") )
Does anyone know how I could input ("firstelem","second elem") and have it return "`"firstelem"' `"second elem"'"?
Thank you,
Andrew Maurer
Comment