Learn R Programming

provenance (version 0.2)

subset: Get a subset of a provenance dataset

Description

Return a subset of provenance data according to some specified indices

Usage

subset(x, ...)

## S3 method for class 'default': subset(x, ...)

## S3 method for class 'DZdata': subset(x, i, ...)

## S3 method for class 'HMdata': subset(x, i, ...)

Arguments

x
an object of class DZdata or HMdata
...
optional arguments for the generic subset function
i
the indices of the samples to be returned

Value

  • an object of class DZdata or HMdata

Examples

Run this code
fname <- system.file("HM.csv",package="provenance")
HM <- read.HMdata(fname)
i <- match(c("N1","N2","T8","T13","N12","N13"),names(HM))
foo <- subset(HM,i)
summaryplot(foo,ncol=2)

Run the code above in your browser using DataLab