as.data.frame.spec: Transform a spec Object Into a Dataframe

View source: R/TidySpec.R

as.data.frame.specR Documentation

Transform a spec Object Into a Dataframe

Description

Transform a spec Object Into a Dataframe

Usage

## S3 method for class 'spec'
as.data.frame(x)

Arguments

x

A spec object

Value

A dataframe or tibble (if package tibble is installed)

Author(s)

Andrew Dolman <andrew.dolman@awi.de>

See Also

Other TidySpec: DF2Spec(), Spec2DF(), as.spec(), as_spec_df()

Examples

library(PaleoSpec)
ts1 <- ts(rnorm(100))
sp1 <- SpecMTM(ts1)
sp1_df <- as.data.frame(sp1)

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