Answers for "r mutate ifelse function"

C
-2

r mutate ifelse function

df <- df %>% mutate(target_bool = case_when(salary == ">50K" ~ TRUE, salary == "<=50K" ~ FALSE))
Posted by: Guest on April-25-2021

Code answers related to "C"

Browse Popular Code Answers by Language