subset | R Documentation |
Return a subset of provenance data according to some specified indices
## 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, ...)
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 |
an object of the same class as x
amalgamate, combine
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.