ECDC: R6 Class containing specific attributes and methods for the...

Description Super classes Public fields Methods Source See Also Examples

Description

Information for downloading, cleaning and processing the European Centre for Disease Prevention and Control COVID-19 data.

Super classes

covidregionaldata::DataClass -> covidregionaldata::CountryDataClass -> ECDC

Public fields

origin

name of origin to fetch data for

supported_levels

A list of supported levels.

supported_region_names

A list of region names in order of level.

supported_region_codes

A list of region codes in order of level.

common_data_urls

List of named links to raw data.

source_data_cols

existing columns within the raw data

source_text

Plain text description of the source of the data

source_url

Website address for explanation/introduction of the data

Methods

Public methods

Inherited methods

Method clean_common()

ECDC specific state level data cleaning

Usage
ECDC$clean_common()

Method return()

Specific return settings for the ECDC dataset.

Usage
ECDC$return()

Method specific_tests()

Run additional tests on ECDC class. Tests ECDC has required additional columns and that there is only one row per country. Designed to be run from test and not run directly.

Usage
ECDC$specific_tests(self_copy, ...)
Arguments
self_copy

R6class the object to test

...

Extra params passed to specific download functions


Method clone()

The objects of this class are cloneable with this method.

Usage
ECDC$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Source

https://www.ecdc.europa.eu/en/publications-data/download-todays-data-geographic-distribution-covid-19-cases-worldwide

See Also

National data sources Covid19DataHub, Google, JHU, JRC, WHO

Examples

1
2
3
4
5
## Not run: 
national <- ECDC$new(verbose = TRUE, steps = TRUE, get = TRUE)
national$return()

## End(Not run)

covidregionaldata documentation built on Feb. 7, 2022, 9:07 a.m.