AverageSpectra: Calculate average spectra (very specific, check before using)

View source: R/manipulation.R

AverageSpectraR Documentation

Calculate average spectra (very specific, check before using)

Description

This function calculates a new average spectrum for each "minutes" based on all its "rep".

Usage

AverageSpectra(data.vis)

Arguments

data.vis

df with wavelength and intensity data with the following REQUIRED columns >> minutes : >> rep : >> idunique : >> n_spectra : >> wavelength : >> intensity :

Details

For this specific situation: minutes rep 5 01 –> spectrum 5 02 –> spectrum 10 01 –> spectrum 10 02 –> spectrum 10 03 –> spectrum So, averages over "rep". To distinguish from non-averaged spectra, we set new rep to the string "avg" (below).

Value

dataframe with the same columns as input df


chepec/oceanoptics documentation built on Nov. 27, 2022, 1:53 p.m.