Recode multiple columns using dplyr

后端 未结 5 851
一向
一向 2020-12-11 19:19

I had a dataframe where I recoded several columns so that 999 was set to NA

dfB <-dfA %>%
  mutate(adhere = if_else(adhere==999, as.numeric(NA), adhere         


        
5条回答
提交回复
热议问题