read_icpms: Read ICP-MS Data Files

Description Usage Arguments Value Examples

Description

Read ICP-MS Data Files

Usage

1
2
3
read_icpms(path, skip = 1, na = c("NA", "", "n/a"))

tidy_icpms(df)

Arguments

path

The path where the files are kept

skip

The number of lines to skip at the beginning of the file (blank lines are automatically dropped).

na

Values that should be considered NA

df

The output of read_icpms or a filtered result

Value

read_icpms returns a data frame with columns sample_id, datetime, run, and others in the form "27Al_ppb" (isotope, element, unit). tidy_icpms returns a parameter-long, summarised result.

Examples

1
2
3
4
5
6
7
8
# file
read_icpms(system.file("test_icpms/test_icpms.xlsx", package = "dalcwrs"))
# directory
read_icpms(system.file("test_icpms", package = "dalcwrs"))

# use tidy to get parameter-long, summarised output
raw <- read_icpms(system.file("test_icpms/test_icpms.xlsx", package = "dalcwrs"))
tidy_icpms(raw)

paleolimbot/dalcwrs documentation built on May 19, 2019, 1:43 a.m.