Description Usage Arguments Value Examples
View source: R/preprocess-data.R
Preprocess the corona data for analysis
1 | preprocess_corona_data(corona_data, statistic, countries, n)
|
corona_data |
A dataframe (tibble) imported with 'read_corona' |
statistic |
A character string ("infections", "deaths" or "recovered") |
countries |
A character vector containing the country names to include |
n |
Integer, number of cases per day to include |
A dataframe (tibble)
1 2 3 4 5 6 7 8 9 | ## Not run:
data <- read_corona()
data %>%
preprocess_corona_data(
statistic = "infections", # Focus on infections
countries = "Italy", # Focus on Italy
n = 100) # Include days where the death toll exceeded 100 cases
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.