View source: R/getRatiosBase.R
getRatiosBase | R Documentation |
Computes ratios from optical data. Assumes that the signal with the greatest mean is in the numerator making the mean ratio greater than one.
getRatiosBase(dataSummary, sigs, baseSig, grnum, specifyOrder = FALSE, recordOrder = FALSE, ratioVars = FALSE)
dataSummary |
dataframe with summary absorbance and fluoresence data. |
sigs |
signals vector of variable names in dataSummary for generating ratios |
baseSig |
name of the column to subtract out the base signal |
grnum |
character column name that defines the column with sample names in the dataSummary dataframe. These names are used to merge spectral slope data into the summary dataframe. |
specifyOrder |
boolean variable to signify whether the numerator and denominator shold stay as specified in ratioVars |
recordOrder |
boolean variable to signify whether the numerator and denominator order should be recorded and used as output rather than the actual ratios. |
ratioVars |
dataframe with specific ratios specified. Numerators in the first column and denominators in the second column |
dataSummary dataframe with the additional columns of spectral ratios computed using getRatios
dataSummary <- dfsummary sigs <- ratioSignals[which(ratioSignals[2]>0),1] grnum <- "GRnumber" baseSig <- "F" test <- getRatiosBase(dataSummary,sigs = sigs, baseSig=baseSig, grnum = grnum)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.