Hi. I have two datasets both with string variables. The first one has a variable CountryName with names of countries for each observation. The second has a variable EventDetails which has mentions of countries along with other information for each observation. From the string for each observation in EventDetails in the second dataset, I want to parse out the country name only if it was in the variable CountryName in the first dataset. Merging the two datasets is not an option here for multiple reasons. Is there anyway for me to use the commands levelsof, locals and a loop to do this across datasets? Or possibly any other way to do this other than making a list of all the country names under the CountryName variable from the first dataset?
Thank you.
Related Posts with Levelsof, local and loops across datasets
Spatial matrix user definesDear All, I would like to generate a spatial matrix defined by myself. I have the following data: …
Creating variable to capture before/after effect using panel dataHi everyone, I have a panel dataset where I follow individuals for 12 waves (new_waves). What I am …
invalid error using nwcommandsHi everyone! I want to use the nwcommands to do some social network analysis and encountered a prob…
example for merge m:mDear All, It is advised in the forum that, when possible possible, do not use Code: merge m:m ... …
Multilevel Model with ESS Data (Survey Data) doesn't convergeTo whom it may concern, I try to calculate a multilevel model for the effect of migration integrati…
Subscribe to:
Post Comments (Atom)
0 Response to Levelsof, local and loops across datasets
Post a Comment