subset: Get a subset of provenance data

Description Usage Arguments Value See Also Examples

Description

Return a subset of provenance data according to some specified indices

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'distributional'
subset(x, subset = NULL, select = NULL, ...)

## S3 method for class 'compositional'
subset(x, subset = NULL, components = NULL, select = NULL, ...)

## S3 method for class 'counts'
subset(x, subset = NULL, components = NULL, select = NULL, ...)

Arguments

x

an object of class distributional

subset

logical expression indicating elements or rows to keep: missing values are taken as false.

select

a vector of sample names

...

optional arguments for the generic subset function

components

categories to keep

Value

an object of class distributional

See Also

read.distributional

Examples

1
2
3
4
5
data(Namib)
coast <- c("N1","N2","T8","T13","N12","N13")
ZTRcoast <- subset(Namib$HM,select=coast,components=c('gt','cpx','ep'))
DZcoast <- subset(Namib$DZ,select=coast)
summaryplot(ZTRcoast,KDEs(DZcoast),ncol=2)

provenance documentation built on May 5, 2021, 1:06 a.m.