Description Usage Arguments Value Examples
Extracts backgrounds for all wavelengths from a MultiPAS data frame.
1 | averagePower(X, cols = 6:9, names = c('pwr406_mW', 'pwr532_mW', 'pwr662_mW', 'pwr785_mW'), ...)
|
X |
A MultiPAS data frame. |
cols |
The columns to use; typically 6:9 for MultiPAS-IV or 5:7 for MultiPAS-III. |
names |
A vector of strings specifying names for the columns, generally of the convention 'pwrWavelength_mW'. |
... |
Additional items to be passed to |
A data frame of power values.
1 2 3 4 5 | pas <- importPAS('pas.txt')
setFilterStart()
# calculate bkg and pwr and add to end of data frame -----
pas <- cbind(pas, getBg(pas))
cbind(averagePower(pas))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.