Information for downloading, cleaning and processing COVID-19 region data for Switzerland
covidregionaldata::DataClass
-> Switzerland
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. This url links to a JSON file which provides the addresses for the most recently-updated CSV files, which are then downloaded.
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
set_region_codes()
Set up a table of region codes for clean data
Switzerland$set_region_codes()
download()
Download function to get raw data. Downloads
the updated list of CSV files using download_JSON
, filters
that to identify the required CSV files, then uses the parent
method download
to download the CSV files.
Switzerland$download()
clean_common()
Switzerland specific state level data cleaning
Switzerland$clean_common()
clone()
The objects of this class are cloneable with this method.
Switzerland$clone(deep = FALSE)
deep
Whether to make a deep clone.
Subnational data sources
Belgium
,
Brazil
,
Canada
,
Colombia
,
Covid19DataHub
,
Cuba
,
Estonia
,
France
,
Germany
,
Google
,
India
,
Italy
,
JHU
,
Lithuania
,
Mexico
,
Netherlands
,
SouthAfrica
,
UK
,
USA
# NOT RUN {
region <- Switzerland$new(verbose = TRUE, steps = TRUE, get = TRUE)
region$return()
# }
Run the code above in your browser using DataLab