Good afternoon colleagues,
I am trying to define a new column called genre
that will take a value such as action, drama, sci-fi and their combinations. But as seen in the attached snippet, we have a column corresponding to each genre type, and they take values True, False
. The goal is to get rid of all these columns and define a new variable called genre
One option is to use if-else()
here but is there any method from tidyverse
package. Advice/ feedback is greatly appreciated.