I would like to create a dummy variables for action movies in my data set.
My code is,
imdb$action_movies <- ifelse(imdb$imdb.com_genres == "Action", 1,0)
Unfortunately when I run this code I only get movies with exclusively the Action
tag and not movies with multiple tags such as Action Adventure.
How can I make it so that my dummy variable will include movies that have the action tag and multiple other genres?