# 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 %>%
pivot_longer(-scenes, names_to = "actor", values_to = "appears") %>%
arrange(scenes)
# }
Run the code above in your browser using DataLab