define_bbox_proj: Defines new boundaries box and projections of a sf object

Description Usage Arguments Examples

View source: R/define_bbox_proj.R

Description

The function defines the attributes bbox and crs of a sf object.

Usage

1
define_bbox_proj(sf_obj, boundbox, crs)

Arguments

sf_obj

an objet of class "sf".

boundbox

character, bounding box.

crs

character, coordinate reference system.

Examples

1
2
3
4
5
6
7
8
9
library(sf)
vn <- gadm("Vietnam", "sf", 0)
vn
bb <- st_bbox(vn)
crs <- st_crs(vn)

vn2 <- gadmVN::gadm()
vn2 <- define_bbox_proj(vn2, bb, crs)
vn2

choisy/sptools documentation built on Aug. 22, 2019, 12:57 p.m.