get_data_by_country: Returns all available countries

Description Usage Arguments Value Examples

View source: R/api.R

Description

Returns all available countries

Usage

1
get_data_by_country(country_name, date = NULL, from = NULL, to = NULL)

Arguments

country_name

character with country name, eg. "Italy". For list of available countris check get_country_list.

date

character with day of interests, eg. "2020-03-15", default NULL

from

character with start date, eg. "2020-03-15", default NULL, if data given it will be ignored

to

character with start date, eg. "2020-04-01", default NULL, if data given it will be ignored

Value

data.frame with data per country

Examples

1
2
3
4
{
 get_data_by_country("Italy")
 get_data_by_country("Poland", date = "2020-03-15")
}

CaRdiffR/covidR-api documentation built on March 30, 2020, 3:11 a.m.