Description Usage Arguments Value Examples
This function takes your generated project data frame created with readxrf() and the file containing information from the XRF machine, and converts your raw data from kcal to micromolar.
See vignette("xrfr") for more information.
1 | convertxrf(imported_data, base_info, year, first_element, last_element)
|
imported_data |
The name of the data frame created with readxrf() |
base_info |
The name of the data frame containing detection limits, crystal drift, molar weights, and calibration constants. |
year |
The year the drift was measured closest to when your samples were analysed. |
first_element |
The name of the first column containing kcps values in the generated project data frame. |
last_element |
The name of the last column containing kcps values in the generated project data frame. |
description The function creates a data frame in the long format with the new columns "Concentration" and "Adjusted_detection_limit" showing the calculated concentration and the respective detection limit (calculated based on volume filtered).
1 2 3 4 5 6 7 8 9 10 | ## Not run:
rawdata.df <- read_delim("xrf_rawdata.txt", delim = "\t", locale = readr::locale(decimal_mark = ","))
projectinfo.df <- read_excel("xrf_projectinfo.xlsx")
baseinfo.df <- read_excel("xrf_setup.xlsx")
projectfile.df <- readxrf(raw_data = rawdata.df, project_info = projectinfo.df)
project.df <- convertxrf(imported_data = projectfile.df, base_info = baseinfo.df, year = "2019", first_element = "C", last_element = "As")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.