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
How to run the Stata code for specific number of observations in panel data?Because when running the code below, it seems that Stata takes a long time to run it, so I want to t…
mediation effect and endogenousDear sir or madam: But I have some question about the mediation effect and endogenous: Is there a tr…
Inverse Probability Weighing for Multiple TreatmentsHi all, I am trying to compute inverse probability weight for multiple treatments. But I am struggl…
Multiple imputation convergence not achievedHi all, I'm trying to perform chained multiple imputations but get an error message about convergen…
How to unassign a variable?When I take the residual by using Code: predict adj, residuals Next time I need to rename the vari…
Subscribe to:
Post Comments (Atom)
0 Response to Keeping strings within quotes
Post a Comment