getEpiData: Retrieve epidemiological data from outbreak.info

View source: R/getEpiData.R

getEpiDataR Documentation

Retrieve epidemiological data from outbreak.info

Description

Retrieve up-to-date epidemiological data from outbreak.info according to user specifications

Usage

getEpiData(
  name = NULL,
  location_id = NULL,
  wb_region = NULL,
  country_name = NULL,
  state_name = NULL,
  admin_level = NULL,
  date = NULL,
  mostRecent = NULL,
  fields = NULL,
  sort = NULL,
  size = 1000
)

Arguments

name

vector of location names

location_id

vector of ISO3 code representing locations

wb_region

World Bank region name(s)

country_name

country name(s)

state_name

state name(s)

admin_level

an integer representing an administrative level (World Bank regions = -1, countries = 0, states/provinces = 1, metropolitan areas = 1.5, counties = 2)

date

date(s) (YYYY-MM-DD)

mostRecent

T/F

fields

vector of API fields to include in results

sort

parameter to sort results by

size

size

Value

dataframe

Examples

getEpiData(name="United States of America", date="2020-07-01")


outbreak-info/R-outbreak-info documentation built on March 2, 2023, 9:58 a.m.