st_rect: st_rect

st_rectR Documentation

st_rect

Description

st_rect

Usage

st_rect(range, crs = st_crs(4326))

Arguments

range

⁠[lon_min, lon_max, lat_min, lat_max]⁠

Examples

## Not run: 
xlim <- c(112, 115)
ylim <- c(21, 23)
range <- c(xlim, ylim)
poly <- st_rect(range)
write_sf(poly, "poly.shp")

## End(Not run)

kongdd/sp2 documentation built on Jan. 15, 2024, 11:31 p.m.