Description Usage Arguments Value Examples
View source: R/identifyPeaks.R
Creates a table of the most intense peaks in an element's
simulated atomic emission spectrum. The table is constructed
using data stored in an object created using
simulateAES
and is ordered from more intense peaks to
less intense peaks.
1 2 3 4 5 6 7 | identifyPeaks(
file,
signal_type = c("relative", "absolute"),
percent_max = 1,
num_peaks = 5,
sortby = c("intensity", "wavelength")
)
|
file |
The name of the object, created using
|
signal_type |
How to report the emission intensity; one
of |
percent_max |
The minimum intensity for which a peak is identified, given as a percentage of the element's maximum absolute or relative emission intensity. Defaults to 1% of the element's maximum absolute or relative emission intensity. |
num_peaks |
The maximum number of peaks to return. Defaults to a table with a maximum of 5 peaks. |
sortby |
How to sort the peaks; one of
|
Returns a data frame with two columns: the wavelengths (in nm) of the peaks and the absolute or relative intensities of the peaks.
1 2 3 | hydrogen = simulateAES(atom = "H")
hydrogen_peaks = identifyPeaks(file = hydrogen)
hydrogen_peaks
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.