Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

colSums

colSums, colMeans, rowSums and rowMeans functions for hyperSpec objects


Description

hyperSpec objects can use the base functions colMeans, colSums, rowMeans and rowSums.

Usage

## S4 method for signature 'hyperSpec'
colMeans(x, na.rm = TRUE, ..., label.spc)

## S4 method for signature 'hyperSpec'
colSums(x, na.rm = TRUE, ..., label.spc)

## S4 method for signature 'hyperSpec'
rowMeans(x, na.rm = TRUE, ..., label.wavelength)

## S4 method for signature 'hyperSpec'
rowSums(x, na.rm = TRUE, ..., label.wavelength)

Arguments

x

hyperSpec object

na.rm, ...

further parameters to the base functions

na.rm defaults to TRUE for hyperSpec objects.

label.spc

labels for the intensity axis for loadings-like (col) statistics

label.wavelength

labels for the wavelength axis for scores-like (row) statistics

See Also

Examples

colMeans (flu)
colSums (flu)
colSums (flu)
rowSums (flu)

hyperSpec

Work with Hyperspectral Data, i.e. Spectra + Meta Information (Spatial, Time, Concentration, ...)

v0.100.0
GPL (>= 3)
Authors
Claudia Beleites [aut, cre, dtc] (<https://orcid.org/0000-0003-1626-154X>), Valter Sergo [aut], Alois Bonifacio [ctb, dtc], Marcel Dahms [ctb], Björn Egert [ctb], Simon Fuller [ctb], Vilmantas Gegzna [ctb], Rustam Guliev [ctb], Bryan A. Hanson [ctb], Michael Hermes [ctb], Martin Kammer [dtc], Roman Kiselev [ctb], Sebastian Mellor [ctb]
Initial release
2021-09-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.