subset: Subset SpectraDataFrame object

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Returns subsets of a SpectraDataFrame object.

Usage

1
subset(x, ...)

Arguments

x

SpectraDataFrame object

...

see details below

Details

Additional parameters:

subset

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

select

expression, indicating columns to select from the data slot

drop

passed on to "[" indexing operator

...

Additional arguments

Value

SpectraDataFrame object

Author(s)

Pierre Roudier pierre.roudier@gmail.com

See Also

mutate

Examples

1
2
3
4
5
6
7
8
9
# 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)

spectacles documentation built on Jan. 13, 2021, 8:46 a.m.