Dear Stata users,
I have a string variable as the following:
ABC
DEF "XYZ"
GJK "LMN"
PQR
...
I would need to only keep values within "" and those without the quotes, that is:
ABC
XYZ
LMN
PQR
...
Thanks!
Related Posts with Keeping strings within quotes
create a new variable from weighted variables?Hello everyone, I'm now stuck into this one: I have a data-set and a (sample) weight variable. Due …
Bilateral exchange rate data with and without make changes in overall results.Dear Statalist, I am using a bilateral exchange rate variable in the gravity model. However, when I…
New on SSC - complexity : computes Complexity Indexes similar to ECI/PCIDear Statalisters, This post to announce that I've released complexity - a package to compute compl…
nested logit - all constraints invalid messageHi I am reposting this because i did not get any replies before. I am trying to model migration wi…
Generating a wave (time) variable in a panel data setI want to generate a variable 'wave' to identify each wave in the dataset. I have the responding per…
Subscribe to:
Post Comments (Atom)
0 Response to Keeping strings within quotes
Post a Comment