process_spectra: Process reflectance spectra

Description Usage Arguments Value Author(s)

View source: R/process_spectra.R

Description

This function performs a few steps of processing on the raw reflectance data. These include removing juveniles and females, removing lizards from New Providence, keeping only one dewlap spot of interest, fixing reflectance artifacts, smoothing curves and removing outliers.

Usage

1
process_spectra(specs, locale = NULL, spot = 1)

Arguments

specs

An rspec data frame containing the reflectance profiles of all dewlaps.

locale

A data frame containing locality information for each lizard (island, habitat, plot, longitude and latitude). Optional.

spot

An integer: what spot to analyze? 1 (default) or 2.

Value

A summary data frame with processed spectra. Wavelengths are in columns, as well as extra details like island and habitats.

Author(s)

Raphael Scherrer


rscherrer/sagreicolor documentation built on May 26, 2019, 12:32 p.m.