df2rspec: Convert to 'rspec' with transposition

Description Usage Arguments Value Author(s)

View source: R/df2rspec.R

Description

This function converts a reflectance data frame with wavelengths in columns into an rspec data frame (package pavo) with wavelengths as rows.

Usage

1

Arguments

df

A data frame of reflectance to convert. Columns for wavelengths must have "wl" preceding the wavelength in their name, e.g. "wl500" for 500nm. There is one row per measurement.

Value

An rspec data frame.

Author(s)

Raphael Scherrer


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