View source: R/c14_date_list_convert.R
as.sf | R Documentation |
Most 14C dates have point position information in
the coordinates columns lat and lon. This allows
them to be converted to a spatial simple feature collection as provided
by the sf
package. This simplifies for example mapping of the
dates.
as.sf(x, quiet = FALSE)
## Default S3 method:
as.sf(x, quiet = FALSE)
## S3 method for class 'c14_date_list'
as.sf(x, quiet = FALSE)
x |
an object of class c14_date_list |
quiet |
suppress warning about the removal of dates without coordinates |
an object of class sf
sf_c14 <- as.sf(example_c14_date_list)
## Not run:
library(mapview)
mapview(sf_c14$geom)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.