subset {provenance} | R Documentation |
Get a subset of provenance data
Description
Return a subset of provenance data according to some specified indices
Usage
## 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, ...)
## S3 method for class 'varietal'
subset(x, subset = NULL, components = NULL, select = NULL, ...)
Arguments
x |
an object of class |
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 |
vector of categories (column names) to keep |
Value
an object of the same class as x
See Also
Examples
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)
[Package provenance version 4.3 Index]