photobiology (version 0.9.25)

get_attributes: 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 generic_spct get_attributes(x, which = NULL, allowed = all.attributes, ...)

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

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

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

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

# S3 method for 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