Several functions in this package and the suite accept a range argument with a flexible syntax. To ensure that all functions and methods behave in the same way this code has been factored out into a separate function.
a numeric vector of length two, or any other object for which function range() will return a range of wavelengths (nm).
a numeric vector of length two, or any other object for which function range() will return a range of wavelengths (nm), missing values are not allowed.
logical If TRUE the range returned is bound within
arg.range argument can contain NAs which are replaced by
the value at the same position in
wl.range. In addition
a NULL argument for
range is converted into
wl.range is also the limit to which the returned value
is trimmed if
trim == TRUE. The idea is that the value supplied as
wl.range is the wavelength range of the data.
a numeric vector of length two, guaranteed not to have missing values.
1 2 3 4 5
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.