Learn R Programming

bcmaps (version 1.2.0)

get_layer: Get a B.C. spatial layer

Description

Get a B.C. spatial layer

Usage

get_layer(layer, class = deprecated(), ask = interactive(), force = FALSE)

Value

the layer requested

Arguments

layer

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

class

what class you want the object in? "sf" (default) or "sp". [Deprecated]. The class argument is deprecated as of bcmaps 1.2.0 and will be removed in Summer 2023. At that point this function will only return an sf object.

ask

Should the function ask the user before downloading the data to a cache? Defaults to the value of interactive().

force

Should you force download the data?

Examples

Run this code
if (FALSE) {
 get_layer("bc_bound_hres")
}

Run the code above in your browser using DataLab