I'm new to Stata and I'm not sure what the normal process is for importing, manipulating, and combining multiple files.
I have Census data from 2018-2021 that shows income and household size. There are extraneous rows in each excel file, so when I import them, I want to keep only the necessary rows and then combine the files into one single frame. On my first attempt, after cleaning the first file, I wrote
and then cleaned the next file. However, when I write
where census18 is the file I imported first, I get an error message.
Am I going about things incorrectly? I know that one can link frames together, but is it possible to do this, clean a frame, and then combine observations from both? Apologies in advance if my terminology is vague or misused, still getting used to everything!
I have Census data from 2018-2021 that shows income and household size. There are extraneous rows in each excel file, so when I import them, I want to keep only the necessary rows and then combine the files into one single frame. On my first attempt, after cleaning the first file, I wrote
Code:
frame create census19 frame change census19 import excel *pathway to next file*
Code:
append using census 18
Am I going about things incorrectly? I know that one can link frames together, but is it possible to do this, clean a frame, and then combine observations from both? Apologies in advance if my terminology is vague or misused, still getting used to everything!

Comment