widen_above: Widening the data frame and removing concentrations below the...

Description Usage Arguments Value Examples

View source: R/after.R

Description

This function will both widen the data frame so each element has its own column, and remove concentrations that are below the detection limits.

See vignette("xrfr") for more information.

Usage

1
widen_above(project_data)

Arguments

project_data

The name of the data frame created with convertxrf().

Value

description The function creates a data frame that is a wider version of the one created with convertxrf(), and where values below the detection limits are removed.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
rawdata.df <- read_delim("xrf_rawdata.txt", delim = "\t", locale = 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")

abovedetlim.df <- widen_above(project_data = project.df)

## End(Not run)

agryt/xrfr documentation built on May 13, 2021, 8:24 p.m.