readxrf: Reading and joining data file and info file

Description Usage Arguments Value Examples

View source: R/readxrf.R

Description

This function reads your two data frames and combines them into one. It will warn you if there are any samples that do not match between your datasets (the raw data and the information file).

See vignette("xrfr") for more information.

Usage

1
readxrf(raw_data, project_info)

Arguments

raw_data

The name of your data frame with raw data from the XRF machine.

project_info

The name of your data frame with necessary information about the samples.

Value

description The function creates a data frame where your raw data and project information has been merged.

Examples

1
2
3
4
5
6
7
## Not run: 
rawdata.df <- read_delim("xrf_rawdata.txt", delim = "\t", locale = locale(decimal_mark = ","))
projectinfo.df <- read_excel("xrf_projectinfo.xlsx")

projectfile.df <- readxrf(raw_data = rawdata.df, project_info = projectinfo.df)

## End(Not run)

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