Learn R Programming

photobiology (version 0.9.20)

getWhereMeasured: Get the "where.measured" attribute

Description

Function to read the "where.measured" attribute of an existing generic_spct.

Usage

getWhereMeasured(x, ...)

# S3 method for default getWhereMeasured(x, ...)

# S3 method for generic_spct getWhereMeasured(x, ...)

# S3 method for summary_generic_spct getWhereMeasured(x, ...)

# S3 method for generic_mspct getWhereMeasured(x, ..., idx = !is.null(names(x)))

Arguments

x

a generic_spct object

...

Allows use of additional arguments in methods for other classes.

idx

logical whether to add a column with the names of the elements of spct

Value

a data.frame with a single row and at least columns "lon" and "lat".

Methods (by class)

  • default: default

  • generic_spct: generic_spct

  • summary_generic_spct: summary_generic_spct

  • generic_mspct: generic_mspct

See Also

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

Examples

Run this code
# NOT RUN {
getWhereMeasured(sun.spct)

# }

Run the code above in your browser using DataLab