getMeanFl: getMeanFl

View source: R/meanFlFxn.R

getMeanFlR Documentation

getMeanFl

Description

Computes different excitation-emission (EEM) signals from fluoresence data and adds them to a summary optical dataframe.

Usage

getMeanFl(a, signals, Peak, Ex1, Ex2, Em1, Em2, dataSummary, grnum)

Arguments

a

an array with 3-D fluorescence results. The 3 dimensions are the excitation wavelength (character), the emission wavelength (character), and the sample names (character).

signals

dataframe defining the max and min excitation (integer) and the max and min emmission (integer) wavelengths for which to compute averages. Contains one column (character) with the names of the various parameters (e.g.,OB1,S1.50,B,T).

Peak

character column for the column in signals with parameters to be computed

Ex1

the first integer excitation wavelength in the range

Ex2

the second integer excitation wavelength in the range. This can be blank if one specific excitation wavelength is used.

Em1

the first integer emmission wavelength in the range

Em2

the second integer emmission wavelength in the range. This can be blank if one specific emmission wavelength is used.

dataSummary

dataframe with summary absorbance and fluorescence data. This function adds columns to the end of this dataframe as additional summary data.

grnum

character column name that defines the column with sample names in the dataSummary dataframe.

Value

dataSummary dataframe with the additional freshness index columns.

Examples

a <- a
signals <- signals
Peak <- "Peak"
Ex1 <- "Ex1"
Ex2 <- "Ex2"
Em1 <- "Em1"
Em2 <- "Em2"
dataSummary <- dfsummary
grnum <- "GRnumber"
testMeanFl <- getMeanFl(a,signals,Peak,Ex1,Ex2,Em1,Em2,dataSummary,grnum)

USGS-R/USGSHydroOpt documentation built on Oct. 18, 2022, 9:50 a.m.