R: Get the metadata attributes

get_attributes {photobiology} | R Documentation

## Get the metadata attributes

### Description

Method returning attributes of an object of class generic_spct or derived, or of class waveband. Only attributes defined and/or set by package 'photobiology' for objects of the corresponding class are returned.

### Usage

    get_attributes(x, which, ...)

    ## S3 method for class 'generic_spct'
    get_attributes(x, which = NULL,
      allowed = all.attributes, ...)

    ## S3 method for class 'source_spct'
    get_attributes(x, which = NULL, ...)

    ## S3 method for class 'filter_spct'
    get_attributes(x, which = NULL, ...)

    ## S3 method for class 'reflector_spct'
    get_attributes(x, which = NULL, ...)

    ## S3 method for class 'object_spct'
    get_attributes(x, which = NULL, ...)

    ## S3 method for class 'waveband'
    get_attributes(x, which = NULL, ...)

### Arguments

`x` | a generic_spct object.
`which` | character vector Names of attributes to retrieve.
`...` | currently ignored
`allowed` | character vector Names of attributes accepted by `which`.

### Value

Named `list` of attribute values.

### Methods (by class)

- `generic_spct`: generic_spct

- `source_spct`: source_spct

- `filter_spct`: filter_spct

- `reflector_spct`: reflector_spct

- `object_spct`: object_spct

- `waveband`: waveband

### See Also

Other measurement metadata functions: `getInstrDesc`, `getInstrSettings`, `getWhatMeasured`, `getWhenMeasured`, `getWhereMeasured`, `isValidInstrDesc`, `isValidInstrSettings`, `setInstrDesc`, `setInstrSettings`, `setWhatMeasured`, `setWhenMeasured`, `setWhereMeasured`, `trimInstrDesc`, `trimInstrSettings`

[Package photobiology version 0.9.21 Index]