I am trying to take IPUMS CPS data and group worker populations in job industries using the IND variable. I tried cleaning the variable using lbl_clean and lbl_collapse but continue getting error codes or not achieving the results I want. My goal is to be able to create a csv file with the industry populations, however I can't get the label attached to the value to appear in R.
Thoughts??
Current code: YA_pop_inLF<- filter(total_WIOA_data, AGE>17, AGE<35, LABFORCE==2) YA_pop_inLF_female <-filter(YA_pop_inLF, SEX==2)
YA_pop_inLF_female$IND <- lbl_clean(YA_pop_inLF_female$IND) ipums_val_labels(YA_pop_inLF_female$IND)
Industrysectors_YA_female <- YA_pop_inLF_female %>% group_by(YEAR, IND) %>% summarize(Population=n())