add_iso: Add XXX.csv file

View source: R/covid19.R

add_isoR Documentation

Add XXX.csv file

Description

Add new country in the inst/extdata/db/ folder

Usage

add_iso(x, iso, ds, level, map = c("id"), append = TRUE)

Arguments

x

data.frame generated by a data source function.

iso

ISO code (3 letters).

ds

name of the data source function generating x.

level

integer. Granularity level. 1: country-level data. 2: state-level data. 3: city-level data.

map

named vector mapping the columns of x to the columns of the XXX.csv file.

append

logical. Append the data to the XXX.csv file if it already exists? Default TRUE.

Value

data.frame


covid19datahub/COVID19dev documentation built on March 16, 2023, 3:22 a.m.