Skip to contents

Coerce to a list

Usage

# S4 method for class 'CalibratedIntervals'
as.list(x, ..., calendar = get_calendar())

Arguments

x

An R object.

...

Currently not used.

calendar

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

Value

A list.

See also

Author

N. Frerebeau

Examples

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

as.data.frame(cal)
#>   BP14C_value BP14C_error reservoir_offset reservoir_error calibration_curve
#> X        5000          45                0               0          intcal20
#> Y        4500          35                0               0          intcal20
#>                                                        calibration_hdr
#> X [-3944, -3855] (29.0%) [-3818, -3691] (56.0%) [-3355, -3091] (94.0%)
#> Y    [-3845, -3832] (2.0%) [-3689, -3653] (9.0%) [-3050, -3040] (1.0%)
#>    calibration
#> X c(-4034,....
#> Y c(-4034,....

as.data.frame(cal, calendar = BP())
#>   BP14C_value BP14C_error reservoir_offset reservoir_error calibration_curve
#> X        5000          45                0               0          intcal20
#> Y        4500          35                0               0          intcal20
#>                                                  calibration_hdr  calibration
#> X [5894, 5805] (29.0%) [5768, 5641] (56.0%) [5305, 5041] (94.0%) c(5984, ....
#> Y    [5795, 5782] (2.0%) [5639, 5603] (9.0%) [5000, 4990] (1.0%) c(5984, ....