Learn R Programming

hyperSpec (version 0.98-20150304)

colSums: colSums, colMeans, rowSums and rowMeans functions for hyperSpec objects

Description

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

Usage

"colMeans"(x, na.rm = TRUE, ..., label.spc)
"colSums"(x, na.rm = TRUE, ..., label.spc)
"rowMeans"(x, na.rm = TRUE, ..., label.wavelength)
"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

colSums

Examples

Run this code
colMeans (flu)
colSums (flu)
colSums (flu)
rowSums (flu)

Run the code above in your browser using DataLab