as.data.frame {ananke}R Documentation

Coerce to a Data Frame

Description

Coerce to a Data Frame

Usage

## S4 method for signature 'CalibratedAges'
as.data.frame(x, ..., calendar = get_calendar())

## S4 method for signature 'CalibratedIntervals'
as.data.frame(x, ..., calendar = get_calendar())

## S4 method for signature 'RECE'
as.data.frame(x, ..., calendar = get_calendar())

## S4 method for signature 'ProxyRecord'
as.data.frame(x, ..., calendar = get_calendar())

Arguments

x

An object.

...

Currently not used.

calendar

An aion::TimeScale object specifying the target calendar (see aion::calendar()). If NULL, rata die are returned.

Value

A data.frame with an extra time column.

Author(s)

N. Frerebeau

See Also

Other mutators: as.list(), labels(), mutators, subset()

Examples

## Calibrate multiple dates
cal <- c14_calibrate(
  values = c(5000, 4500),
  errors = c(45, 35),
  names = c("X", "Y")
)

head(as.data.frame(cal))
head(as.data.frame(cal, calendar = BP()))
head(as.data.frame(cal, calendar = NULL))

[Package ananke version 0.1.0 Index]