get_layer: Get specified spatial layer from OxCOVID19 Database

Description Usage Arguments Value Author(s) Examples

View source: R/get_layer.R

Description

Get specified spatial layer from OxCOVID19 Database

Usage

1
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

Author(s)

Ernest Guevarra

Examples

1
2
con <- connect_oxcovid19()
get_layer(con = con, ccode = "CHN", adm = 1)

oxcovid19 documentation built on Jan. 13, 2021, 8:50 p.m.