Skip to contents

Spectral columns are identified by having column names that are entirely numeric (e.g. "350", "2500", "600.5"). Columns whose names contain any non-numeric letter characters (e.g. "oc", "wr.33kPa", "Soil_ID") are excluded.

Usage

get_wavelengths(df, id_col = "Soil_ID")

Arguments

df

A data frame with spectral columns named as numbers (nm or cm-1)

id_col

Name of the sample identifier column to exclude

Value

A list with wl (numeric positions) and cols (column names)