colSums()
, colMeans()
, rowSums()
, and rowMeans()
for hyperSpec
ObjectsR/colMeans.R
colSums.Rd
hyperSpec
objects can use the base functions base::colMeans()
,
base::colSums()
, base::rowMeans()
and base::rowSums()
.
# 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)
x |
|
---|---|
na.rm, ... | further parameters to the base functions
|
label.spc | labels for the intensity axis for loadings-like (col) statistics |
label.wavelength | labels for the wavelength axis for scores-like (row) statistics |
colMeans(flu)#> hyperSpec object #> 1 spectra #> 1 data columns #> 181 data points / spectrum #> wavelength: lambda/nm [numeric] 405.0 405.5 ... 495 #> data: (1 rows x 1 columns) #> 1. spc: I[fl]/"a.u." [matrix, array181] 113.9094 120.0804 ... 170.5215colSums(flu)#> hyperSpec object #> 1 spectra #> 1 data columns #> 181 data points / spectrum #> wavelength: lambda/nm [numeric] 405.0 405.5 ... 495 #> data: (1 rows x 1 columns) #> 1. spc: I[fl]/"a.u." [matrix, array181] 683.4563 720.4823 ... 1023.129colSums(flu)#> hyperSpec object #> 1 spectra #> 1 data columns #> 181 data points / spectrum #> wavelength: lambda/nm [numeric] 405.0 405.5 ... 495 #> data: (1 rows x 1 columns) #> 1. spc: I[fl]/"a.u." [matrix, array181] 683.4563 720.4823 ... 1023.129rowSums(flu)#> hyperSpec object #> 6 spectra #> 3 data columns #> 1 data points / spectrum #> wavelength: lambda/nm [integer] 1 #> data: (6 rows x 3 columns) #> 1. spc: I[fl]/"a.u." [matrix, array1] 14410.97 29120.14 ... 92422.77 #> 2. filename: filename [character] rawdata/flu1.txt rawdata/flu2.txt ... rawdata/flu6.txt #> 3. c: c / (mg / l) [numeric] 0.05 0.10 ... 0.3