
Get COVID-19 Statistics for a Specific Country
Source:R/get_covid_stats_by_country_name.R
get_covid_stats_by_country_name.Rd
Retrieves COVID-19 totals for a given country using the 'disease.sh' API.
Usage
get_covid_stats_by_country_name(
country,
yesterday = FALSE,
twoDaysAgo = FALSE,
strict = TRUE,
allowNull = FALSE
)
Arguments
- country
Character. A country name, ISO2, ISO3 code, or country ID.
- yesterday
Logical. If
TRUE
, gets data reported from the previous day. Default isFALSE
.- twoDaysAgo
Logical. If
TRUE
, gets data reported two days ago. Default isFALSE
.- strict
Logical. If
TRUE
(default), disables fuzzy matching (e.g., avoids confusion between "Oman" and "Romania").- allowNull
Logical. If
TRUE
, allows null values (returned asNA
). Default isFALSE
.