I'll typically collect spectra data in an excel file with 4 columns: the lambda and emission values corresponding to the minimum and maximum states. This function takes data from those 4 columns, condenses them into a 3-column dataframe (with matching lambda values), and makes a sensorSpectra object

spectraMatrixFromValues(
  lambdas_minimum,
  values_minimum,
  lambdas_maximum,
  values_maximum
)

Arguments

lambdas_minimum

Lambdas of the values corresponding to the Rmin state

values_minimum

Emission values corresponding to the Rmin state

lambdas_maximum

Lambdas of the values corresponding to the Rmax state

values_maximum

Emission values corresponding to the Rmax state

Value

A sensorSpectra object