1

I'm using mutate and ifelse in r to create a new column. It's working, but was wondering if there's a simpler way of writing the "ors" here?

ifelse(school == 13 | school == 14 | school == 15, "private","public")
pogibas
  • 27,303
  • 19
  • 84
  • 117
JSmith
  • 37
  • 5

0 Answers0