These functions implement the equivalent of replace() but for spectral objects instead of vectors.
clean_spct(x, range, range.s.data, fill, col.names, col.pattern = NULL, ...)
an R object
numeric vector of wavelengths
numeric vector of length two giving the allowable range for the spectral data.
numeric vector of length 1 or 2, giving the replacement values to use at each extreme of the range.
character The name of the variable to clean.
currently ignored