Last data update: 2014.03.03

R: Select a subset of some data
subset.timeresolvedR Documentation

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

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)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(ArArRedux)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/ArArRedux/subset.Rd_%03d_medium.png", width=480, height=480)
> ### Name: subset.timeresolved
> ### Title: Select a subset of some data
> ### Aliases: subset.logratios subset.redux subset.results
> ###   subset.timeresolved
> 
> ### ** Examples
> 
> 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)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>