How do you split the multiple values of a variable in R programming.
Like, in the image the genre has multiple values in it's cells. how do you separate them and get count of the values in a table.
table(trimws(unlist(strsplit(df$Genre, split = ","))))