Skip to contents

Information for downloading, cleaning and processing COVID-19 region data for Colombia

Super class

covidregionaldata::DataClass -> Colombia

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

Inherited methods


Method set_region_codes()

Set up a table of region codes for clean data

Usage

Colombia$set_region_codes()


Method download()

Colombia specific download using Socrata API This uses the RSocrata package if it is installed or downloads a much larger csv file if that package is not available.

Usage

Colombia$download()


Method clean_common()

Colombia specific data cleaning

Usage

Colombia$clean_common()


Method clean_level_1()

Colombia Specific Department Level Data Cleaning

Aggregates data to the level 1 (department) regional level. Data is provided by the source at the level 2 (municipality) regional level.

Usage

Colombia$clean_level_1()


Method clone()

The objects of this class are cloneable with this method.

Usage

Colombia$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

if (FALSE) {
region <- Colombia$new(verbose = TRUE, steps = TRUE, get = TRUE)
region$return()
}