# NOT RUN {
# To convert data frame to tidy data (long) format, run:
library(dplyr)
library(tidyr)
library(stringr)
love_actually_appearance_tidy <- love_actually_appearance %>%
gather(actor, appears, -c(scenes)) %>%
arrange(scenes)
# }
Run the code above in your browser using DataLab