read_icp: Read ICP-MS data files generated by the Thermo Scientific...

View source: R/read_icp.R

read_icpR Documentation

Read ICP-MS data files generated by the Thermo Scientific iCAP-RQ

Description

Read ICP-MS data files generated by the Thermo Scientific iCAP-RQ

Usage

read_icp(
  path,
  sheet_name = "Dilution factor included",
  first_line = "Sample List",
  sample_names = "Label",
  estimate_types = "Category",
  ...
)

Arguments

path

Path to stored ICP-MS files

sheet_name

Name of MS Excel sheet where data are stored

first_line

The first column matches this pattern at the first line of data. As an input to stringr::str_detect(), this can be a partial match or a regex.

sample_names

Name of column where sample names are stored.

estimate_types

Name of column where estimate types are stored (e.g., average, standard deviation).

...

Arguments passed on to readxl::read_excel().

Value

A tibble with columns sample_name, category, isotope, element, value, and unit

Examples

file <- list.files(
   path = system.file("extdata", package = "cwrshelpr"),
   full.names = TRUE,
   pattern = ".+\\.xlsx"
)
read_icp(file[1])

bentrueman/cwrshelpr documentation built on July 1, 2023, 4:29 a.m.