Learn R Programming

oxcovid19 (version 0.1.2)

get_layer: Get specified spatial layer from OxCOVID19 Database

Description

Get specified spatial layer from OxCOVID19 Database

Usage

get_layer(con, layer = "administrative_division", ccode, adm)

Arguments

con

Connection to OxCOVID19 Database. This can be specified using the connect_oxcovid19() function.

layer

Name of spatial layer available in OxCOVID19 Database. Currently, only administrative_division is a spatial layer.

ccode

Three character ISO country code for required country layers.

adm

Numeric value for administrative level layer required. Possible values are 0 for whole country, 1 for administrative level 1, 2 for administrative level 2 and 3 for administrative level 3. Default is 0 for country borders.

Value

An object of sf class of the specified spatial layer

Examples

Run this code
# NOT RUN {
con <- connect_oxcovid19()
get_layer(con = con, ccode = "CHN", adm = 1)

# }

Run the code above in your browser using DataLab