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"?
Mixlogit- "Some variables are collinear, check your model specification"Hello, I am doing a mixlogit regression for a DCE. This is the command that I am using- mixlogit c…
no observation error (2000) after entering control variables.Hi, I'm working on mexico pension program and at primary steps, when I want to estimate impact of pr…
Time and/or Spatial fixed SDM model estimationI am trying to make a research about determinants of local development with the SDM model. The theor…
GraphingDear Users, I used an online app to produce this graph. Possible to do the same using Stata?: Array …
Advice on forming a dependent variableDear everyone, Hope you are doing well in these times! I have a slight concern. I am evaluating th…
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