mutate: Mutate a Spectra* object by transforming the spectra values,...

Description Usage Arguments Details References Author(s)

Description

Mutate a Spectra* object by transforming the spectra values, and/or adding new or replacing existing attributes.

Usage

1
mutate(.data, ...)

Arguments

.data

an object inheriting from the Spectra class

...

named parameters giving definitions of new columns

Details

This function is very similar to transform but it executes the transformations iteratively so that later transformations can use the columns created by earlier transformations. Like transform, unnamed components are silently dropped.

Mutate seems to be considerably faster than transform for large data.frames.

Either the spectra, and/or the attributes (if the .data inherits from the SpectraDataFrame class) can be affected:

References

Hadley Wickham (2011). The Split-Apply-Combine Strategy for Data Analysis. Journal of Statistical Software, 40(1), 1-29. URL http://www.jstatsoft.org/v40/i01/.

Author(s)

Pierre Roudier pierre.roudier@gmail.com, from code from Hadley Wickham


pierreroudier/specstore documentation built on May 25, 2019, 6:09 a.m.