Hello,
I am struggling with the following task that already kept me bugging for hours.
This is the process step by step:
1. Import individual file (names: file2002, file2004, file2006, file2008, file2010)
2. Keep only the variables: id aa001_* aa004_* ba016_* ca001_* ea104_* eb001_* eb002_* ec023_* eh041_*. * should be replaced with 2002, 2004, 2006, 2008, 2010.
3. Join files on the first file using the id variable as key
Having spent more than 5 hours now, I didn't get far. The main problem involves the joining of multiple files. Is there a possibility to perform this task using simple code? I can imagine that there's are fairly frequently performed operations.
Thank you very much.
Sincerely,
Simon
Related Posts with Loop to open, keep variables, and join different files
Ttest with categorical varaiblesHI, I wanted to know if it is possible to run ttests in order to calculate the difference between th…
How to use global macros inside conditional statementsHi guys, I'm encountered a syntax problem that should be easy to solve but I still can't nail how to…
Is it possible to specify a different color only for the negative bar?Hello, I want to change the different colors on the negative bar in my graph. Code: input year …
population size on svy: proportion commandHello, I have surveyed the residents of a city of population 61000 people, obtaining 242 responses. …
Robust Hausman Test for TWFEHello, I am currently writing a thesis on the relationship between public family spending and suicid…
Subscribe to:
Post Comments (Atom)
0 Response to Loop to open, keep variables, and join different files
Post a Comment