specify_statistic: Specify the statistic to analyse

Description Usage Arguments Details Value Examples

View source: R/preprocess-data.R

Description

This function species the statistic to use in a subsequent analysis. At the moment, three stistics are available:

Usage

1

Arguments

corona_data

A dataframe (tibble) imported with 'read_corona'

statistic

A character string

Details

1. infections 2. deaths 3. recoveries

Value

A data.frame (tibble) with columns country, date, statistic

Examples

1
2
3
4
5
6
## Not run: 
data <- read_corona()
data %>%
 specify_statistic("infections")

## End(Not run)

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