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"?
Regression discontinuity of binary outcomes with rdplot/rdrobust/rdbwselect and/or rd*Hi I’m using Stata/SE 15.1 and am able to run all example do files included in the rdplot/rdrobust/r…
Adding quantity of particular product from all importers and one particular exporterDear all, I have a dataset with information about products (numeric), their quantity, the importer …
Latent profile analysis with continuous indicators and local independenceHello Stata users! I am doing a Latent Profile Analysis with continuous indicators (gsem, lclass op…
Finding values that are two standard deviations above the meanI need to find values of a variable that are two standard devotions above the mean. I want to create…
change label in y-axis/x-axis?Dear All, I have the following code (please ssc install coefplot) and graph: Code: webuse grunfeld,…
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