I'm actually not even quite sure how to ask this question, so please bear with me.
I've noticed that there is an error in the dataset I'm working with, the ANES Cumulative File. For one of the years in the dataset (2004), the values for one variable (which I renamed "grewup") were left out by accident, so it just says "NA" for that year. The values are there for the other years, so the dataset essentially looks something like this:
id year grewup 1 2002 127 2 2002 310 3 2004 NA 4 2004 NA 5 2008 332 6 2008 614
I do have another dataset that consists of just 2004 and has the missing values for "grewup". What I would like to do is recode the NAs for 2004 using the values from the second dataset. How would I do that? Again, the values are in the cumulative dataset for the rest of the years; I just want to recode for 2004 and leave the rest of the values alone.
Thanks.
SOME CLARIFICATIONS AND ADDITIONS:
I would like to only bring this one variable from the second dataset to avoid making the first dataset even more massive and memory-draining than it already is (951 columns). There are actually dozens of other variables they I either already have
Also, while all values for 2004 are NAs, not every NA in the dataset is for 2004. There are some in there for other years that were legitimately missing values.