Spectra are tagged by adding variables and attributes containing color
definitions, labels, and a factor following the wavebands given in
w.band
.
tag(x, ...)# S3 method for default
tag(x, ...)
# S3 method for generic_spct
tag(x, w.band = NULL,
wb.trim = getOption("photobiology.waveband.trim", default = TRUE),
use.hinges = TRUE, short.names = TRUE, byref = FALSE, ...)
# S3 method for generic_mspct
tag(x, w.band = NULL,
wb.trim = getOption("photobiology.waveband.trim", default = TRUE),
use.hinges = TRUE, short.names = TRUE, byref = FALSE, ...)
an R object
not used in current version
waveband or list of waveband objects The waveband(s) determine the region(s) of the spectrum that are tagged
logical Flag telling if wavebands crossing spectral data boundaries are trimmed or ignored
logical Flag indicating whether to use hinges to reduce interpolation errors
logical Flag indicating whether to use short or long names for wavebands
logical Flag indicating if new object will be created by
reference or by copy of x
default
: Default method for generic
generic_spct
: Tag one of generic_spct
, and derived classes including
source_spct
, filter_spct
, reflector_spct
,
object_spct
, and response_spct
.
generic_mspct
: Tag one of generic_mspct
, and derived classes including
source_mspct
, filter_mspct
, reflector_mspct
,
object_mspct
, and response_mspct
.
Other tagging and related functions: is_tagged
,
untag
, wb2rect_spct
,
wb2spct
, wb2tagged_spct
# NOT RUN {
tag(sun.spct)
tag(sun.spct, list(A = waveband(c(300,3005))))
# }
Run the code above in your browser using DataLab