Description Usage Arguments Value Examples
Get all by type cases for a country. Country must be the slug from GetAvalaibleCountries() or GetCountrySummary(). Cases must be one of: confirmed, recovered, deaths. When total parameter is TRUE the live parameter is not necesary.
1 | GetByCountry(country.requested, status.requested, live = FALSE, total = FALSE)
|
country.requested |
Country slug name choosed |
status.requested |
Status requested, they could be confirmed, recovered or deaths |
live |
If TRUE gets the lates cases from the country and status requested |
total |
If TRUE returns all cases by type for a country from the first recorded case |
Data frame columns country, Province, latitude, longitude, date, number of cases and status
1 2 3 | GetByCountry(country.requested = 'mexico', status.requested = 'confirmed')
GetByCountry(country.requested = 'mexico', status.requested = 'confirmed', live = TRUE)
GetByCountry(country.requested = 'mexico', status.requested = 'confirmed', total = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.