Hi all.
How to find variable1 that contain words like "apple" or "pear" or "orange" with keywords typea, typeb,typec... And replace it with the text "selected fruit"?
Here is an example:
variable1
typea apple
typeb pear
typeii bee
nonpear
typec orange
find those containing words like "apple" or "pear" or "orange" with keywords typea, typeb,typec... And replace it with the text "selected fruit", and the expected results would be:
variable1
selected fruit
selected fruit
typeii bee
nonpear
selected fruit
Thanks,
David
Related Posts with How to find variable1 that contain words like "apple" or "pear" with keywords typea... and replace them with the text "selected fruit"?
Interpreting output for 'test' command in logistic regression.I am using Stata14 to run logic regression on a number of variables including some that are categori…
Bootstrapping a two-step estimation with survey dataHello everyone, This is more of a clarification question as my code runs without any errors: I am …
Adding new observations, partially similar to existing ones and according their patternHello, Many thanks to all Statalist contributors, whose posts and references in many topics have he…
Summary statistics using eststo/esttab in a loopHi there, I am trying to do something like this: Code: local group1 var1 var2 var3 local group2 …
Problem with Regression on Stata 15.1 on MacHi, I’m using Stata 15.1 for Mac from my university and I have a problem. Almost every time when I …
Subscribe to:
Post Comments (Atom)
0 Response to How to find variable1 that contain words like "apple" or "pear" with keywords typea... and replace them with the text "selected fruit"?
Post a Comment