Return a copy of an R object with its class set to a given type of spectrum.
Arguments
- x
an R object.
- ...
Arguments passed on to
setSourceSpctmultiple.wlnumeric Maximum number of repeated
w.lengthentries with same value.idfactorcharacter Name of factor distinguishing multiple spectra when stored longitudinally (required if
mulitple.wl> 1).strict.rangelogical Flag indicating whether off-range values result in an error instead of a warning.
- time.unit
character string indicating the time unit used for spectral irradiance or exposure (
"second","day"or"exposure") or an object of class duration as defined in package lubridate.- bswf.used
character A string, either
"none"or the name of a BSWF. (Users seldom need to change the default, as this metadata value is in normal use set by operators or functions that apply a BSWF.)
See also
Other constructors of spectral objects:
as.calibration_spct(),
as.chroma_spct(),
as.cps_spct(),
as.filter_spct(),
as.generic_spct(),
as.object_spct(),
as.raw_spct(),
as.reflector_spct(),
as.response_spct(),
as.solute_spct(),
source_spct()
