powered by
Function to read the "time.unit" attribute
getTimeUnit(x, force.duration = FALSE)
a source_spct object
logical If TRUE a lubridate::duration is returned even if the object attribute is a character string, if no conversion is possible NA is returned.
character string or a lubridate::duration
Other time attribute functions: checkTimeUnit(), convertTfrType(), convertThickness(), convertTimeUnit(), setTimeUnit()
checkTimeUnit()
convertTfrType()
convertThickness()
convertTimeUnit()
setTimeUnit()
# NOT RUN { getTimeUnit(sun.spct) # }
Run the code above in your browser using DataLab