powered by
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)
sf_point(..., crs = 4326)
sf_points(..., crs = 4326)
sf_polygon(..., crs = 4326)
sf_box(xmin, ymin, xmax, ymax, crs = 4326)
An sf object of the appropriate type
The coordinates of the object
The coordinate reference system. Defaults to 4326
Corners for sf_box
pt_a <- c(-90, 45) pt_b <- c(-89, 44) pt <- sf_points(pt_a) line <- sf_line(pt_a, pt_b)
Run the code above in your browser using DataLab