photobiology (version 0.11.2)

getTimeUnit: Get the "time.unit" attribute of an existing source_spct object

Description

Function to read the "time.unit" attribute

Usage

getTimeUnit(x, force.duration = FALSE)

Value

character string or a lubridate::duration

Arguments

x

a source_spct object

force.duration

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.

See Also

Other time attribute functions: checkTimeUnit(), convertThickness(), convertTimeUnit(), setTimeUnit()

Examples

Run this code
getTimeUnit(sun.spct)

Run the code above in your browser using DataCamp Workspace