View source: R/read-fred-csv.r
read_FReD_csv | R Documentation |
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()
)
file |
character string |
date |
a |
geocode |
A data frame with columns |
label |
character string, but if |
tz |
character Time zone used for interpreting times saved in the file header. |
locale |
The locale controls defaults that vary from place to place. The
default locale is US-centric (like R), but you can use
|
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 - A Web Portal for Analyses of Flower Colour. PLoS ONE 5(12): e14287. doi:10.1371/journal.pone.0014287
file.name <-
system.file("extdata", "FReDflowerID_157.csv",
package = "photobiologyInOut", mustWork = TRUE)
fred.spct <- read_FReD_csv(file = file.name)
fred.spct
getWhatMeasured(fred.spct)
cat(comment(fred.spct))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.