get_cases: Retrieve Corona Virus Cases

Description Usage Arguments Details Value Examples

View source: R/get_cases.R

Description

This function returns a dataframe of corona virus cases. It has an optional input of <wide>.

Usage

1
get_cases(wide = FALSE)

Arguments

wide

A boolean expression to indicate if a wide dataframe is preferred. Default is FALSE.

Details

The wide option enables the confirmed, deaths, and recovered cases to appear in columns instead of in just one column.

Value

a tidy dataframe of corona virus cases (infected, dead, cured)

Examples

1
2
3
4
5
6
7
8
## Not run: 
cases <- get_cases() # standard

## End(Not run)
## Not run: 
cases <- get_cases(wide = TRUE) # wide dataframe

## End(Not run)

nikdata/covidvirus documentation built on April 2, 2020, 4:06 a.m.