elco_new_irms_std: Creates an object of class 'irms_std'

View source: R/irms_std.R

elco_new_irms_stdR Documentation

Creates an object of class irms_std

Description

elco_new_irms_std is the internal constructor function for objects of class irms_std. An object of class irms is an object of class irms, but contains only measurements on standards. Objects of class irms are intended to be created only internally.

Usage

elco_new_irms_std(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 a standard. Only values existing in irms_standards() are allowed

.

sample_mass

A units vector representing the mass of the sample [g].

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.

d15N_area

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

d15N

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

d13C_area

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

d13C

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

d18O

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

C_m

A numeric vector with the relative mass fraction of C.

N_m

A numeric vector with the relative mass fraction of N.

Value

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


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