# S4 method for hyperSpec
colMeans(x, na.rm = TRUE, ..., label.spc)# S4 method for hyperSpec
colSums(x, na.rm = TRUE, ..., label.spc)
# S4 method for hyperSpec
rowMeans(x, na.rm = TRUE, ..., label.wavelength)
# S4 method for hyperSpec
rowSums(x, na.rm = TRUE, ..., label.wavelength)