Spec2DF: Transform Spec Object(s) Into a Dataframe

View source: R/TidySpec.R

Spec2DFR Documentation

Transform Spec Object(s) Into a Dataframe

Description

Transform Spec Object(s) Into a Dataframe

Usage

Spec2DF(x)

Arguments

x

A spec object or (optionally named) list of spec objects.

Value

A spec_df object

Author(s)

Andrew Dolman <andrew.dolman@awi.de>

See Also

Other TidySpec: DF2Spec(), as.data.frame.spec(), as.spec(), as_spec_df()

Examples

library(PaleoSpec)
ts1 <- ts(SimPLS(1000, beta = 1))
sp1 <- SpecMTM(ts1)
sp1 <- AddConfInterval(sp1)
ts2 <- ts(rnorm(1000))
sp2 <- SpecMTM(ts2)
sp_lst <- list(sp1 = sp1, sp2 = sp2)
sp_df <- Spec2DF(sp_lst)
sp_df

EarthSystemDiagnostics/paleospec documentation built on Feb. 17, 2024, 4:36 p.m.