Sets the class attribute of a data.frame or an object of a derived class to "generic_spct".
setGenericSpct(x, multiple.wl = 1L, idfactor = NULL)setCalibrationSpct(
x,
strict.range = getOption("photobiology.strict.range", default = FALSE),
multiple.wl = 1L,
idfactor = NULL
)
setRawSpct(
x,
strict.range = getOption("photobiology.strict.range", default = FALSE),
multiple.wl = 1L,
idfactor = NULL
)
setCpsSpct(
x,
time.unit = "second",
strict.range = getOption("photobiology.strict.range", default = FALSE),
multiple.wl = 1L,
idfactor = NULL
)
setFilterSpct(
x,
Tfr.type = c("total", "internal"),
Rfr.constant = NA_real_,
thickness = NA_real_,
attenuation.mode = NA,
strict.range = getOption("photobiology.strict.range", default = FALSE),
multiple.wl = 1L,
idfactor = NULL
)
setReflectorSpct(
x,
Rfr.type = c("total", "specular"),
strict.range = getOption("photobiology.strict.range", default = FALSE),
multiple.wl = 1L,
idfactor = NULL
)
setObjectSpct(
x,
Tfr.type = c("total", "internal"),
Rfr.type = c("total", "specular"),
strict.range = getOption("photobiology.strict.range", default = FALSE),
multiple.wl = 1L,
idfactor = NULL
)
setResponseSpct(
x,
time.unit = "second",
response.type = "response",
multiple.wl = 1L,
idfactor = NULL
)
setSourceSpct(
x,
time.unit = "second",
bswf.used = c("none", "unknown"),
strict.range = getOption("photobiology.strict.range", default = FALSE),
multiple.wl = 1L,
idfactor = NULL
)
setChromaSpct(x, multiple.wl = 1L, idfactor = NULL)
data.frame, list or generic_spct and derived classes
numeric Maximum number of repeated w.length entries with same value.
character Name of factor distinguishing multiple spectra when stored logitudinally (required if mulitple.wl > 1).
logical Flag indicating whether off-range values result in an error instead of a warning.
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.
character A string, either "total" or "internal".
numeric The value of the reflection factor (/1).
numeric The thickness of the material.
character One of "reflection", "absorption" or "mixed".
character A string, either "total" or "specular".
a character string, either "response" or "action".
character A string, either "none" or the name of a BSWF.
x
setCalibrationSpct
: Set class of a an object to "calibration_spct".
setRawSpct
: Set class of a an object to "raw_spct".
setCpsSpct
: Set class of a an object to "cps_spct".
setFilterSpct
: Set class of an object to "filter_spct".
setReflectorSpct
: Set class of a an object to "reflector_spct".
setObjectSpct
: Set class of an object to "object_spct".
setResponseSpct
: Set class of an object to "response_spct".
setSourceSpct
: Set class of an object to "source_spct".
setChromaSpct
: Set class of an object to "chroma_spct".
Other set and unset spectral class functions:
rmDerivedSpct()
# NOT RUN {
my.df <- data.frame(w.length = 300:309, s.e.irrad = rep(100, 10))
is.source_spct(my.df)
setSourceSpct(my.df)
is.source_spct(my.df)
# }
Run the code above in your browser using DataLab