subset: Subset SpectraDataFrame object

subsetR Documentation

Subset SpectraDataFrame object

Description

Returns subsets of a SpectraDataFrame object.

Usage

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


# 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 July 10, 2023, 1:59 a.m.