Acts as parent class for national data classes, allowing them
to access general methods defined in DataClass()
but with additional
covidregionaldata::DataClass
-> CountryDataClass
filter_level
Character The level of the data to filter at. Defaults to the country level of the data.
filter()
Filter method for country level data. Uses countryname
to match input countries with known names.
CountryDataClass$filter(countries, level)
countries
A character vector of target countries. Overrides the
current class setting for target_regions
. If the filter_level
field
level
argument is set to anything other than level 1 this is passed
directly to the parent DataClass()
filter()
method with no
alteration.
level
Character The level of the data to filter at. Defaults to the conuntry level if not specified.
clone()
The objects of this class are cloneable with this method.
CountryDataClass$clone(deep = FALSE)
deep
Whether to make a deep clone.
On top of the methods documented in DataClass()
, this class
implements a custom filter function that supports partial matching to
English country names using the countrycode
package.
Data interface functions
DataClass
,
get_available_datasets()
,
get_national_data()
,
get_regional_data()
,
initialise_dataclass()