select certain bands or aggregate wavelength ranges of a hyperSpec object.
aggregate_wl(x, FUN = "mean", ...)
x | a hyperSpec object. |
---|---|
FUN | function to be used for aggregation. |
... | (named) selection of bands or band ranges. |
a hyperspec object with aggregated spc
if (FALSE) { aggregate_wl(chondro, "mean", band_a = 938, band_b = 1230 ~ 1260) }