R: Check the "time.unit" attribute of an existing source_spct...

checkTimeUnit {photobiology} | R Documentation

## Check the "time.unit" attribute of an existing source_spct object

### Description

Function to read the "time.unit" attribute

### Usage

    checkTimeUnit(x)

### Arguments

`x` | a source_spct object

### Value

x possibly with the `time.unit` attribute modified

### Note

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

### See Also

Other time attribute functions: `convertTimeUnit`, `getTimeUnit`, `setTimeUnit`

[Package photobiology version 0.9.21 Index]