For the purpose of this data analysis, a column was added to the data set called Continent, in order to categorize countries by their region.
netflix_df$Continent = countrycode(sourcevar = netflix_df[, "Country"],
origin = "country.name",
destination = "region23")
Code used to filter and summarize by region (ex. below is Australia & New Zealand):
netflix_AUS = netflix_df %>%
group_by(Continent) %>%
filter(Continent == "Australia and New Zealand") %>%
summarise(avg_shows = round(sum(No._of_TV_Shows) / 2),
avg_movies = round(sum(No._of_Movies) / 2)) %>%
dplyr::select(Continent, avg_shows, avg_movies)