Ensure wavelengths in all spectra in a mspct
object are consistent,
filling head and tail of spectral quantities when needed with NAs, and using
interpolation if needed. If individual spct
objects contain multiple
spectra in long form these are split into multiple spct
objects, each
containing data for one spectrum.
make_wl_consistent(x, w.length.out = NULL)
a generic_spct object
numeric vector of wavelengths (nanometres)