preprocess_corona_data: Preprocess the corona data for analysis

Description Usage Arguments Value Examples

View source: R/preprocess-data.R

Description

Preprocess the corona data for analysis

Usage

1
preprocess_corona_data(corona_data, statistic, countries, n)

Arguments

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

Value

A dataframe (tibble)

Examples

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)

jnshsrs/corona documentation built on April 9, 2020, 11:10 p.m.