Answers for "r change yes no to 0 1"

0

r change yes no to 0 1

df$myvar <- ifelse(df$myvar=="Yes", 0, 1)
Posted by: Guest on May-25-2021

Browse Popular Code Answers by Language