data.set-method: Recovers the data from the results of a changepoint analysis.

Description Usage Arguments Value Examples

Description

Recovers the data from the S4 class returned by mrc. The data is stored in a data frame and, unless indexed=TRUE was specified when the data was analysed, the first column will contain an index variable. If the original data did not have column names, default ones of the form V.n, where n is the column number, will be added.

Usage

1
2
## S4 method for signature 'changepoint.mv.mrc.class'
data.set(x)

Arguments

x

An S4 class instance obtained from mrc.

Value

A data frame containing the original data and an index variable (if indexed=TRUE was used for the analysis).

Examples

1
2
3
4
library(changepoint.mv)
data(mrcexample)
res<-mrc(mrcexample)
head(data.set(res))

changepoint.mv documentation built on Aug. 7, 2020, 5:06 p.m.