Closed KVUGA closed 5 months ago
cotton_c <- cotton%>% clean_names()%>% dplyr::select(year, county, production_bale = value)%>% mutate(production_bale = replace(production_bale, production_bale == (D), NA))
cotton_c
Just to update, I did # to the code line and in the next lines, when I mutated it to the numeric value, it automatically changed to NA
cotton_c <- cotton%>% clean_names()%>% dplyr::select(year, county, production_bale = value)%>% mutate(production_bale = replace(production_bale, production_bale == (D), NA))
cotton_c