In this part we will explore Lines 21-66 in the sample code (and maybe more). In these lines the DAACS team performs common analysis techniques including summarising and graphing.
In this exercise we look at L34-35 and the summarise
function
- Run Line 34
- Explore the result (a new variable named
SCVTotalArts
) - Breakdown how the
summarise(...)
function works- find the documentation using google
- https://www.rdocumentation.org/packages/dplyr/versions/0.7.8/topics/summarise
Now we explore grouping in our dataset. Warning: This is tricky.
- Run Line 39
- Explore the result (a new variable named
SCVArtCat
) - Compare
SCVArtCat
andSCVTotalArts
- Compare sum(SCVArtCat$Count) and
SCVTotalArts
Finally we will make a plot to show our data. This is very complicated so we are going to break it down piece by piece.
- Goto line 49 and follow along