Function to set the "time.unit" attribute and simultaneously rescaling the spectral data to be expressed in the new time unit. The change is done by reference ('in place')
a source_spct object
a character string, either "second", "hour", "day", "exposure" or "none", or a lubridate::duration
logical indicating if new object will be created by reference or
by copy of
x possibly with the
time.unit attribute modified
if x is not a
source_spct or a
response_spct object, or
time.unit is NULL x is returned unchanged, if the existing or new time.unit
cannot be converted to a duration, then the returned spectrum will contain
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.