elco_new_irms: Creates an object of class 'irms'

View source: R/irms.R

elco_new_irmsR Documentation

Creates an object of class irms

Description

elco_new_irms is the internal constructor function for objects of class irms. An object of class irms is a tibble::tibble() with a sample in each row and a prescribed set of columns for metadata and element contents. Objects of class irms are intended to be created only internally.

Usage

elco_new_irms(x)

Arguments

x

A data.frame with a row for each measured sample or standard and the following columns:

file_id

An integer increasing by 1 and starting from 1, representing a unique ID for each csv file that has been imported.

measurement_id

An integer increasing by 1 and starting from 1 for each imported file, representing a unique ID for each measurement per file.

measurement_type

A character vector representing the measurement type. One of "Sam" (the measurement is a measurement of a sample) or "Ref" (the measurement is a measurement of a standard/reference).

sample_label

A character vector with names for the samples. If measurement_type == "Sam", this is a label for the sample. If measurement_type == "Ref", this is the name of the standard as given in irms_standards()

.

sample_mass

A quantities vector representing the mass of the sample [g] with measurement errors (these are set to 0 by default).

time

A POSIXct vector with the date and time when the sample was measured.

file_name

A character vector with the full path to the .RUN file containing the raw data for the corresponding measurement.

15N_area

A numeric vector with the area of the chromatogram peak for the N content and δ^{15}\text{N\textperthousand} value.

15N

A numeric vector with the δ^{15}\text{N\textperthousand} value.

13C_area

A numeric vector with the area of the chromatogram peak for the C content and δ^{13}\text{C\textperthousand} value.

13C

A numeric vector with the δ^{13}\text{C\textperthousand} value.

18O

A numeric vector with the δ^{18}\text{O\textperthousand} value.

C

A numeric vector with the relative mass fraction of C [g/g].

N

A numeric vector with the relative mass fraction of N [g/g].

Value

An object of class irms. This is identical to x, but has an additional class attribute.


henningte/elco documentation built on May 21, 2022, 6:56 p.m.