Learn R Programming

ArArRedux (version 0.1)

subset.timeresolved: Select a subset of some data

Description

Extracts those intercepts, covariances etc. that match a given list of indices or labels.

Usage

## S3 method for class 'timeresolved':
subset(x, i = NULL, labels = NULL, ...)

## S3 method for class 'logratios': subset(x, i = NULL, labels = NULL, ...)

## S3 method for class 'redux': subset(x, i = NULL, labels = NULL, ...)

## S3 method for class 'results': subset(x, i = NULL, labels = NULL, ...)

Arguments

x
an object of class timeresolved, logratios, redux or results<
i
a vector with indices of the selected runs
labels
a string or a vector of strings with sample names
...
other arguments

Value

  • an object of the same class as x

Examples

Run this code
data(Melbourne)
ages <- process(Melbourne$X,Melbourne$irr,Melbourne$fract)
MD <- subset(ages,labels=c("MD2-1","MD2-2","MD2-3","MD2-4","MD2-5"))
plotcorr(MD$covmat)

Run the code above in your browser using DataLab