importCovidData: Import Covid Data

Description Usage Arguments Value Examples

Description

Imports data from public github repo on Covid cases by date and location (with latitude and longitude), reformats, cleans, and merges with population data

Usage

1
importCovidData(from_web = TRUE)

Arguments

from_web

defaults to TRUE: whether to import from the web or from the package

Value

Output is a dataframe with columns for disease (covid), province (location specific), region (location general), lat (latitude), long (longitude), date, value, value_type, pop_2018

Examples

1
2
importCovidData()                   # defaults to from_web = TRUE
importCovidData(from_web = FALSE)   # returns historical subset of data

smorsink1/ncov2019 documentation built on March 27, 2020, 7:22 p.m.