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