Function to set by reference the "where.measured" attribute of an existing generic_spct, generic_mspct, summary_generic_spct, data.frame or a derived-class object.
setWhereMeasured(x, where.measured, lat, lon, address, ...)where_measured(x) <- value
# S3 method for default
setWhereMeasured(x, where.measured, lat, lon, address, ...)
# S3 method for generic_spct
setWhereMeasured(x, where.measured = NA, lat = NA, lon = NA, address = NA, ...)
# S3 method for summary_generic_spct
setWhereMeasured(x, where.measured = NA, lat = NA, lon = NA, address = NA, ...)
# S3 method for data.frame
setWhereMeasured(x, where.measured = NA, lat = NA, lon = NA, address = NA, ...)
# S3 method for generic_mspct
setWhereMeasured(x, where.measured = NA, lat = NA, lon = NA, address = NA, ...)
x
a generic_spct object
A one row data.frame such as returned by
function geocode
from package 'ggmap' for a location search.
numeric Latitude in decimal degrees North
numeric Longitude in decimal degrees West
character Human readable address
Allows use of additional arguments in methods for other classes.
setWhereMeasured(default)
: default
setWhereMeasured(generic_spct)
: generic_spct
setWhereMeasured(summary_generic_spct)
: summary_generic_spct
setWhereMeasured(data.frame)
: data.frame
setWhereMeasured(generic_mspct)
: generic_mspct
Other measurement metadata functions:
add_attr2tb()
,
getFilterProperties()
,
getHowMeasured()
,
getInstrDesc()
,
getInstrSettings()
,
getSoluteProperties()
,
getWhatMeasured()
,
getWhenMeasured()
,
getWhereMeasured()
,
get_attributes()
,
isValidInstrDesc()
,
isValidInstrSettings()
,
select_spct_attributes()
,
setFilterProperties()
,
setHowMeasured()
,
setInstrDesc()
,
setInstrSettings()
,
setSoluteProperties()
,
setWhatMeasured()
,
setWhenMeasured()
,
spct_attr2tb()
,
spct_metadata()
,
subset_attributes()
,
trimInstrDesc()
,
trimInstrSettings()
my.spct <- sun.spct
where_measured(my.spct)
where_measured(my.spct) <- data.frame(lon = 0, lat = -60)
where_measured(my.spct)
Run the code above in your browser using DataLab