Reads a CSV data file downloaded from the FReD (Floral Reflectance Database) and then imports wavelengths and spectral reflectance values and flower ID.
read_FReD_csv(file, date = NA, geocode = NULL, label = NULL,
tz = NULL, locale = readr::default_locale())
character string
a POSIXct
object to use to set the "when.measured"
attribute. If NULL
, the default, the date is extracted from the
file header.
A data frame with columns lon
and lat
used to
set attribute "where.measured"
.
character string, but if NULL
the value of file
is
used, and if NA
the "what.measured" attribute is not set.
character Time zone used for interpreting times saved in the file header.
The locale controls defaults that vary from place to place. The
default locale is US-centric (like R), but you can use
locale
to create your own locale that controls things
like the default time zone, encoding, decimal mark, big mark, and day/month
names.
A reflectance_spct object.
http://www.reflectance.co.uk Arnold SEJ, Faruq S, Savolainen V, McOwan PW, Chittka L, 2010 FReD: The Floral Reflectance Database <U+2014> A Web Portal for Analyses of Flower Colour. PLoS ONE 5(12): e14287. doi:10.1371/journal.pone.0014287