subset | R Documentation |
Returns subsets of a SpectraDataFrame object.
subset(x, ...)
x |
SpectraDataFrame object |
... |
see details below |
Additional parameters:
logical expression indicating elements or rows to keep: missing values are taken as false
expression, indicating columns to select from the data slot
passed on to "[" indexing operator
Additional arguments
SpectraDataFrame object
Pierre Roudier pierre.roudier@gmail.com
mutate
# Loading example data
data(australia)
spectra(australia) <- sr_no ~ ... ~ 350:2500
# Subset on attributes
s <- subset(australia, carbon < 5)
# Subset and selection of attributes
s <- subset(australia, carbon < 5, select = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.