AverageSpectra | R Documentation |
This function calculates a new average spectrum for each "minutes" based on all its "rep".
AverageSpectra(data.vis)
data.vis |
df with wavelength and intensity data with the following REQUIRED columns >> minutes : >> rep : >> idunique : >> n_spectra : >> wavelength : >> intensity : |
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).
dataframe with the same columns as input df
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.