as.sf: Convert a *c14_date_list* to a sf object

Description Usage Arguments Value Examples

View source: R/c14_date_list_convert.R

Description

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.

Usage

1
2
3
4
5
6
7
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)

Arguments

x

an object of class c14_date_list

quiet

suppress warning about the removal of dates without coordinates

Value

an object of class sf

Examples

1
2
3
4
5
6
7
sf_c14 <- as.sf(example_c14_date_list)

## Not run: 
library(mapview)
mapview(sf_c14$geom)

## End(Not run)

c14bazAAR documentation built on March 26, 2020, 6:38 p.m.