I tried to recode using mutate and recode. I am new to this. and stuggling. Plaese help
DM_data %>% mutate(Sex= recode(Sex, "a" = "M", "b" = "F"))
Error message came as
Error in UseMethod("mutate_") :
no applicable method for 'mutate_' applied to an object of class "NULL"