

The data came from the aoe2stats website, simply copied and pasted with datapasta Click here to see code block with raw data # paste and read data aocdedat head(aocdedat) library ( stringr ) # CRAN v1.4.0 library ( ggplot2 ) # CRAN v3.3.1 library ( scico ) # CRAN v1.1.0 library ( ggrepel ) # CRAN v0.8.2 library ( gghighlight ) # CRAN v0.3.0 library ( FactoMineR ) # CRAN v2.3 library ( tidytext ) # CRAN v0.2.4


First, we need the following packages: library ( tidyr ) # CRAN v1.1.0 library ( unheadr ) # CRAN v0.2.1 library ( dplyr ) # v1. It’s not bad, but the different unit types appear as embedded subheaders, and a few variables contain compound values. The data on the site looks like this: click to enlarge

