create_day_sequence: Add day column to dataframe (grouped for each country and...

Description Usage Arguments Value Examples

View source: R/preprocess-data.R

Description

Day column where day = 1 corresponds to the first date with at least n 'number_of_cases'

Usage

1
create_day_sequence(data, number_of_cases = 100)

Arguments

data

A dataframe (suits with dataframe generated by read_corona())

number_of_cases

Defaul value: 100, Integer, indicating the minimum number of cases (infections/ deaths/ recovered)

Value

A dataframe (with an additional day colum as incremental integers starting at 1)

Examples

1
2
3
4
5
## Not run: 
data <- read_corona()
data %>% create_day_sequence()

## End(Not run)

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