Okay, I'm stumped after searching through the manuals. I have a
string variable that has the name of a group. For example, "Stata
Users Group" (stored without the quotes).
I want to create a new variable that 1) trims the string, 2) adds " as
a prefix, and 3) adds" as a suffix.
In other programs you could do something like this:
generate newname='"'+trim(name)+'"'
That is, enclose the double quotes in single quotes.
Can anyone direct me to the relevant portions of the manuals or know the answer?
TIA,
Alan
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/