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

Description Usage Arguments Value Note See Also Examples

View source: R/spct.classes.r

Description

Function to read the "time.unit" attribute

Usage

1
getTimeUnit(x, force.duration = FALSE)

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.

Value

character string or a lubridate::duration

Note

if x is not a source_spct or a response_spct object, NA is returned

See Also

Other time attribute functions: checkTimeUnit, convertTimeUnit, setTimeUnit

Examples

1

photobiology documentation built on Aug. 27, 2017, 5:05 p.m.