all_ratios: Complete processing for Pb isotope ratio data.

Description Usage Arguments Value See Also Examples

Description

The function extracts, remove outliers and correct for mass bias Pb isotope ratio data included in a .csv report generated by Perkin Elmer ELAN ICP-MS.

Usage

1
all_ratios(filename, report = c("short", "long"), print = c(FALSE, TRUE))

Arguments

filename

A data set saved in csv format with "," as field separator and "." as decimal separator. Such file can be obtained from the .rep report provided by the instrument by opening it with a spreadsheet editor and saving it as .csv file using a local setting = EN-US or equivalent. The function identifies standard samples for bracketing when labelled as “SRM” and substitutes their names with “SRM981_X” where X is a progressive integer. Similarly, QC samples “CRM” are renamed as “CRM482_X”.

report

A string referring to the type of report generated by the instrument Accepted values are "short" or "long".

  • Short reports have only information about the sample ID, data and time of the measure, a summary with average intensities and finally, the intensity values for each replicate.

  • Long reports contain also information of the "short" counterpart and also some information about the measurement conditions. Additionally, the summary section is reported after the intensity values for each replicates. These reports are tipically produced when working in isotope ratio mode.

print

Logical. If TRUE, the result in printing on screen the ratios. FALSE is the default setting.

Value

A data.table containing Pb isotope ratios filtered for outliers and corrected for mass bias using the standard bracketing technique. Pb20x20y columns provide Pb ratio values for 20xPb/20yPb with x, y = 6, 7, 8. Pb20x20y.U columns stores the estimated extended uncertainty (U = k u, k = 2).

See Also

extract_data calc_ratios corr_mbf

Examples

1
2
file.short <- system.file("extdata", "sednya_2015.csv", package = "pbratios")
sednya.2015 <- all_ratios(file.short, report = "short", print = TRUE)

andreabz/pbratios documentation built on May 12, 2019, 2:42 a.m.