crd_to_points | R Documentation |
Generate sf points from lon/lat columns
crd_to_points(lon, lat, CRS = 4326)
lon |
longitude |
lat |
latitude |
CRS |
(optional) the EPSG code; uses wgs84 by default |
Use this function to create sf points from lon and lat columns.
spatial features column
data("pdx_breweries", package="spaceheater") pts <- crd_to_points(pdx_breweries$lon, pdx_breweries$lat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.