Skip to contents

Creates a simple feature (sf) clas spatial data.frame from points

Usage

shapefile_from_sitepoints(sitepoints, crs = 4269, ...)

Arguments

sitepoints

a table in data.table format or data.frame with columns called lat,lon (or aliases of those)

crs

used in st_as_sf() default is crs = 4269 or Geodetic CRS NAD83

...

passed to sf::st_as_sf()

Value

a simple feature sf::sf class spatial data.frame via sf::st_as_sf(). Note other columns get returned, and the lat,lon columns do get returned but as "lat" and "lon" even if they were provided as aliases of those