R: Get the "spct.version" attribute

getSpctVersion {photobiology} | R Documentation

## Get the "spct.version" attribute

### Description

Function to read the "spct.version" attribute of an existing generic_spct object.

### Usage

    getSpctVersion(x)

### Arguments

`x` | a generic_spct object

### Value

integer value

### Note

if x is not a `generic_spct` object, `NA` is returned, and if it the attribute is missing, zero is returned with a warning.

[Package photobiology version 0.9.21 Index]