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

View source: R/c14_date_list_convert.R

as.sfR Documentation

Convert a c14_date_list to a sf object

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

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

sf_c14 <- as.sf(example_c14_date_list)

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

## End(Not run)


ISAAKiel/c14bazAAR documentation built on Feb. 6, 2024, 3:18 a.m.