Skip to contents

Coerce to a list

Usage

# S4 method for class 'CalibratedIntervals'
as.list(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 list.

See also

Other mutators: as.data.frame(), labels(), mutators, subset()

Author

N. Frerebeau

Examples

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

head(as.data.frame(cal))
#>    time            X Y
#> 1 -4034 1.086768e-06 0
#> 2 -4033 1.209832e-06 0
#> 3 -4032 1.346149e-06 0
#> 4 -4031 1.497060e-06 0
#> 5 -4030 1.664034e-06 0
#> 6 -4029 1.529550e-06 0
head(as.data.frame(cal, calendar = BP()))
#>   time            X Y
#> 1 5984 1.086768e-06 0
#> 2 5983 1.209832e-06 0
#> 3 5982 1.346149e-06 0
#> 4 5981 1.497060e-06 0
#> 5 5980 1.664034e-06 0
#> 6 5979 1.529550e-06 0
head(as.data.frame(cal, calendar = NULL))
#>       time            X Y
#> 1 -4034 CE 1.086768e-06 0
#> 2 -4033 CE 1.209832e-06 0
#> 3 -4032 CE 1.346149e-06 0
#> 4 -4031 CE 1.497060e-06 0
#> 5 -4030 CE 1.664034e-06 0
#> 6 -4029 CE 1.529550e-06 0