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
Help creating a graph, and add confidence intervals to another graphHi, Question 1: I have a dataset with patent count, a dummy to check wheter a firm engages in a M&a…
Estimating discrete choice model using continuous v/s binary variablesHello, I am trying to estimate a discrete choice model, and I have a quick question on how I can st…
Standard deviation of annual changes in log-sales over the recent five yearsHi, I would like to calculate the standard deviation of annual changes in log-sales over the recent…
Stata Journal Editors' Prize 2020: Congratulations to Daniel Klein!The Editors of the Stata Journal (H. Joseph Newton and myself) are delighted to announce the award o…
how to code the following on statai have a group of friends around 50 .. and all make a choice of colour pink 10 , red 6 , black 10 , …
Subscribe to:
Post Comments (Atom)
0 Response to Keeping strings within quotes
Post a Comment