Women’s World Cup

NA

Published

July 21, 2019

Notable topics: NA

Recorded on: 2019-07-21

Timestamps by: Alex Cookson

View code

Screencast

Timestamps

countrycode

Adding country names using countrycode package

Web scraping country codes from Wikipedia

Combining tables that are separate lists into one dataframe

rev

Using rev function (reverse) to turn multiple rows of soccer match scores into one row (base team and opposing team)

geom_smooth

Applying a geom_smooth linear model line to a scatter plot, then facetting it

geom_abline

Adding a line with a slope of 1 (x = y) using geom_abline

Pulling out elements of a list that is embedded in a dataframe

glue
glue

Using glue function to add context to facet titles