Skip to contents

Coerce to a Data Frame

Usage

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

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

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

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

Arguments

x

An R object.

...

Further parameters to be passed to data.frame().

calendar

A aion::TimeScale object specifying the target calendar (see calendar()).

Value

A data.frame with an extra time column giving the (decimal) years at which the time series was sampled.

Author

N. Frerebeau