getBg: Extract Background From MultiPAS Data

Description Usage Arguments Value Examples

Description

Extracts backgrounds for all wavelengths from a MultiPAS data frame.

Usage

1
getBg(X, cols = 2:5, names = c('bg406_mV', 'bg532_mV', 'bg662_mV', 'bg785_mV'))

Arguments

X

A MultiPAS data frame.

cols

The columns to use; typically 2:5 for MultiPAS-IV or 2:4 for MultiPAS-III.

names

A vector of strings specifying names for the columns, generally of the convention 'bgWavelength_mV'.

Value

A data frame of background values.

Examples

1
2
3
4
5
# import data -----
pas <- importPAS('pas.txt') %>%
  setFilterStart()
# calculate bkg and pwr and add to end of data frame -----
pas <- cbind(pas, getBg(pas))

alphonse/aeRo documentation built on May 11, 2019, 11:21 p.m.