I have just started working RStudio and this is my code that I am trying to run:
starwars1a <- starwars %>% + mutate(+human = case_when(species %in% “Human” ~ 1, + !(species %in% “Human”) ~ 0
And I always get this error message:
Error: unexpected ‘=’ in “starwars1a <- starwars %>% + mutate( + human =”
I have tried to use (==) and someone told me it could be the formatting, so I tried it with the package FormatR, but that also gave me the error message.
selina Schandeler is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.