subset: Select a subset of some data

Description Usage Arguments Value Examples

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## S3 method for class 'timeresolved'
subset(x, i = NULL, labels = NULL, invert = FALSE,
  include.J = FALSE, ...)

## S3 method for class 'logratios'
subset(x, i = NULL, labels = NULL, invert = FALSE,
  include.J = FALSE, ...)

## S3 method for class 'redux'
subset(x, i = NULL, labels = NULL, invert = FALSE,
  include.J = FALSE, ...)

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

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

invert

boolean flag indicating whether the selection should be inverted, i.e. whether the selected indices or labels should be removed rather than retained

include.J

if TRUE, automatically adds the irradiation monitors to the selection

...

other arguments

Value

an object of the same class as x

Examples

1
2
3
4
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)

pvermees/ArArRedux documentation built on May 26, 2019, 11:33 a.m.