Function to set by reference the "where.measured" attribute of an existing generic_spct or an object of a class derived from generic_spct.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
setWhereMeasured(x, where.measured, lat, lon, address, ...) where_measured(x) <- value ## Default S3 method: setWhereMeasured(x, where.measured, lat, lon, address, ...) ## S3 method for class 'generic_spct' setWhereMeasured(x, where.measured = NA, lat = NA, lon = NA, address = NA, ...) ## S3 method for class 'summary_generic_spct' setWhereMeasured(x, where.measured = NA, lat = NA, lon = NA, address = NA, ...) ## S3 method for class 'generic_mspct' setWhereMeasured(x, where.measured = NA, lat = NA, lon = NA, address = NA, ...)
a generic_spct object
A one row data.frame such as returned by
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.
This method alters x itself by reference and in addition
returns x invisibly. If x is not a generic_spct or an object of a class derived from
generic_spct, x is not modified. If
where is not a POSIXct object
NULL an error is triggered. A
POSIXct describes an
instant in time (date plus time-of-day plus time zone). As expected
NULL as argument for
where.measured unsets the
Method for collections of spectra recycles the location information only if it is of length one.
Other measurement metadata functions:
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.