bb_to_bbox: Convert a 4-element bbox vector to a sf bbox object

View source: R/bb.R

bb_to_bboxR Documentation

Convert a 4-element bbox vector to a sf bbox object

Description

Convert a 4-element bbox vector to a sf bbox object

Usage

bb_to_bbox(
  bb = c(-72, -63, 39, 46),
  crs = ifelse(use_wkt("sf"), "epsg:4326", "+init=epsg:4326")
)

Arguments

bb

a 4-element numeric vector of left, right, bottom and top coordinates

crs

character, the coordinate reference system

Value

sf bbox object


BigelowLab/rasf documentation built on July 18, 2022, 10:19 p.m.