Learn R Programming

ananke (version 0.1.0)

as.data.frame: Coerce to a Data Frame

Description

Coerce to a Data Frame

Usage

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

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

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

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

Value

A data.frame with an extra time column.

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.

Author

N. Frerebeau

See Also

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

Examples

Run this code
## 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))

Run the code above in your browser using DataLab