leombastos / 2024_ppa

1 stars 4 forks source link

Replacing (D) to NA code not running. #22

Closed KVUGA closed 5 months ago

KVUGA commented 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

KVUGA commented 5 months ago

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