Summary Statistics

We can obtain useful summary statistics from our final cleaned datasets country and world using the summary function and using the by function with the summary function.

# Summary Statistics
summary(country)
by(country$confirmed, country$Country.Region, summary
by(country$cumconfirmed, country$Country.Region, summary)
by(country$deaths, country$Country.Region, summary)
by(country$recovered, country$Country.Region, summary)
summary(world)
summary(italy)

Tools: R | Data Format: Statistics


First created: April 21, 2020
Last updated: May 14, 2026

Tutorial maintained by Nadia Muhe.

Tutorial created by Nadia Muhe.

Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International icon