sf_objects {arcpullr} | R Documentation |
These are simple wrapper functions for creating sf objects from points
sf_line(..., crs = 4326)
sf_point(..., crs = 4326)
sf_points(..., crs = 4326)
sf_polygon(..., crs = 4326)
sf_box(xmin, ymin, xmax, ymax, crs = 4326)
... |
The coordinates of the object |
crs |
The coordinate reference system. Defaults to 4326 |
xmin, xmax, ymin, ymax |
Corners for sf_box |
An sf object of the appropriate type
pt_a <- c(-90, 45)
pt_b <- c(-89, 44)
pt <- sf_points(pt_a)
line <- sf_line(pt_a, pt_b)