powered by
spc.bin(spc, by=stop("reduction factor needed"), na.rm=TRUE, ..., short="spc.bin", user=NULL, date=NULL)
hyperSpec
NA
if FALSE or 0, the binning is done using na.rm = FALSE
FALSE
0
na.rm = FALSE
if TRUE or 1, the binning is done using na.rm = TRUE
TRUE
1
na.rm = TRUE
if 2
2
ceiling (nwl (spc) / by)
logentry
by
Using na.rm = TRUE always takes about twice as long as na.rm = FALSE.
If the spectra matrix does not contain too many NAs, na.rm = 2 is faster than na.rm = TRUE.
na.rm = 2
spc <- spc.bin (flu, 5) plot (flu[1,,425:475]) plot (spc[1,,425:475], add = TRUE, col = "blue") nwl (flu) nwl (spc)
Run the code above in your browser using DataLab