Learn R Programming

bcmaps (version 0.18.1)

get_layer: Get a B.C. spatial layer

Description

Get a B.C. spatial layer

Usage

get_layer(layer, class = c("sf", "sp"), ...)

Arguments

layer

the name of the layer. The list of available layers can be obtained by running available_layers()

class

The class of the layer returned. Can be either "sf" (default) or "sp"

...

arguments passed on to get_big_data if the layer needs to be downloaded. Ignored if the layer is available locally in bcmapsdata.

Value

the layer requested

Examples

Run this code
# NOT RUN {
 get_layer("bc_bound_hres")

 # As a "Spatial" (sp) object
 get_layer("watercourses_15M")
# }

Run the code above in your browser using DataLab