Merging two data frames with different sizes and missing values
问题 I'm having a problem merging two data frames in R. The first one consists of 103731 obs of 6 variables. The variable that I have to use to merge has 77111 unique values and the rest are NA s with a value of 0. The second one contains the frequency of those variables plus the frequency of the NA s so a frame of 77112 obs for 2 variables. The resulting frame I need to get is the first one joined with the frequency for the merging variable, so a df of 103731 obs with the frequency for each value