powered by
Function to set by reference the "time.unit" attribute
setTimeUnit( x, time.unit = c("second", "hour", "day", "exposure", "none"), override.ok = FALSE )
a source_spct object
a character string, either "second", "hour", "day", "exposure" or "none", or a lubridate::duration
logical Flag that can be used to silence warning when overwriting an existing attribute value (used internally)
x
Other time attribute functions: checkTimeUnit(), convertTfrType(), convertThickness(), convertTimeUnit(), getTimeUnit()
checkTimeUnit()
convertTfrType()
convertThickness()
convertTimeUnit()
getTimeUnit()
# NOT RUN { my.spct <- sun.spct setTimeUnit(my.spct, time.unit = "second") setTimeUnit(my.spct, time.unit = lubridate::duration(1, "seconds")) # }
Run the code above in your browser using DataLab