average_spectra | R Documentation |
Calculates an average of two or more spectra.
Calcule la moyenne de deux spectres ou plus.
average_spectra(ftir, sample_ids = NA, average_id = "averaged_spectra")
ftir |
A data.frame of FTIR spectral data including spectra to be converted. Un data.frame de données spectrales IRTF comprenant les spectres à convertir. |
sample_ids |
A vector of sample IDs to be averaged together. All sample
IDs must be present in the Un vecteur d'identifiants d'échantillons dont la moyenne doit être
calculée.. Tous les identifiants des échantillons doivent être présents
dans le data.frame |
average_id |
The name to be used as Le nom à utiliser en tant que |
A data.frame containing the averaged FTIR spectra, with sample_id
corresponding to the provided average_id
.
Un data.frame contenant les spectres IRTF moyennés, avec sample_id
correspondant à l'identifiant average_id
fourni.
# Calculate the average of biodiesel B5 spectra and the unknown spectra
average_spectra(biodiesel, c("biodiesel_5_0", "biodiesel_B5", "diesel_unknown"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.