Learn R Programming

bcmaps (version 0.18.1)

bc_bbox: Get an extent/bounding box for British Columbia

Description

Get an extent/bounding box for British Columbia

Usage

bc_bbox(class = c("sf", "sp", "raster"), crs = 3005)

Arguments

class

"sf", "sp", or "raster"

crs

coordinate reference system: integer with the EPSG code, or character with proj4string. Default 3005 (BC Albers).

Value

an object denoting a bounding box of British Columbia, of the corresponding class specified in class. The coordinates will be in lat-long WGS84 (epsg:4326).

Examples

Run this code
# NOT RUN {
if (requireNamespace("bcmapsdata", quietly = TRUE)) {
  bc_bbox("sf")
  bc_bbox("sp")
  bc_bbox("raster")
}
# }

Run the code above in your browser using DataLab