bbox_to_matrix: Convert a 4-element bbox vector to a matrix of two columns (x...

Description Usage Arguments Value

View source: R/nearth.R

Description

Convert a 4-element bbox vector to a matrix of two columns (x and y)

Usage

1
bbox_to_matrix(x = c(-72, -63, 39, 46), close = TRUE)

Arguments

x

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

close

logical, if TRUE then close the polygon such that the first and last verices are the same

Value

a matrix of 2 columns and either 5 rows (closed) or 4 rows (open)


BigelowLab/nearth documentation built on May 5, 2019, 2:44 p.m.