specvis_search: Search the spec.vis database

Description Usage Arguments Value Author(s) Examples

View source: R/specvis_search.R

Description

Search the spec.vis database.

Usage

1
specvis_search(..., return.spectra = FALSE)

Arguments

...

One or more search conditions to match (note: must use relational operators, e.g. ==, <=). Can match against any variables listed in the dictionary in specvis_dict, namely:

  • spec_name:

  • contributor:

  • contributor_email:

  • citation_abbrev:

  • doi:

  • method:

  • type:

  • modelled:

  • filtered:

  • genus:

  • species:

  • sub:

  • sex:

return.spectra

A logical argument specifying whether the raw spectra be returned. Defaults to FALSE, thereby returning all metadata associated with a query.

Value

A data frame of reflectance spectra from binned in 1 nm intervals from 300-700 nm, with the first column containing wavelengths ('wl').

Author(s)

Thomas White thomas.white026@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

# Query the database to see how many spectra from the genus 'bombus'
# are available, and examine their metadata
specvis_search(genus == "bombus")

# Save the corresponding spectra to an object
bombus_vis <- specvis_search(genus == "bombus", return.spectra = TRUE)

## End(Not run)

thomased/spec.vis documentation built on May 26, 2019, 10:36 a.m.