elco_new_xrf: Creates an object of class xrf.

View source: R/xrf.R

elco_new_xrfR Documentation

Creates an object of class xrf.

Description

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

Usage

elco_new_xrf(x)

Arguments

x

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

sample_id

A character vector with the sample labels.

method_name

A character vector with the names of the measurement methods used.

time

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

Na

A units vector with the measured Na content [μg/g].

Na_flag

A logical vector indicating if the calibration range was exceeded for Na (TRUE) or not (FALSE).

Mg

A units vector with the measured Mg content [μg/g].

Mg_flag

A logical vector indicating if the calibration range was exceeded for Mg (TRUE) or not (FALSE).

Al

A units vector with the measured Al content [μg/g].

Al_flag

A logical vector indicating if the calibration range was exceeded for Al (TRUE) or not (FALSE).

Si

A units vector with the measured Si content [μg/g].

Si_flag

A logical vector indicating if the calibration range was exceeded for Si (TRUE) or not (FALSE).

P

A units vector with the measured P content [μg/g].

P_flag

A logical vector indicating if the calibration range was exceeded for P (TRUE) or not (FALSE).

S

A units vector with the measured S content [μg/g].

S_flag

A logical vector indicating if the calibration range was exceeded for S (TRUE) or not (FALSE).

Cl

A units vector with the measured Cl content [μg/g].

Cl_flag

A logical vector indicating if the calibration range was exceeded for Cl (TRUE) or not (FALSE).

K

A units vector with the measured K content [μg/g].

K_flag

A logical vector indicating if the calibration range was exceeded for K (TRUE) or not (FALSE).

Ca

A units vector with the measured Ca content [μg/g].

Ca_flag

A logical vector indicating if the calibration range was exceeded for Ca (TRUE) or not (FALSE).

Ti

A units vector with the measured Ti content [μg/g].

Ti_flag

A logical vector indicating if the calibration range was exceeded for Ti (TRUE) or not (FALSE).

Cr

A units vector with the measured Cr content [μg/g].

Cr_flag

A logical vector indicating if the calibration range was exceeded for Cr (TRUE) or not (FALSE).

Mn

A units vector with the measured Mn content [μg/g].

Mn_flag

A logical vector indicating if the calibration range was exceeded for Mn (TRUE) or not (FALSE).

Fe

A units vector with the measured Fe content [μg/g].

Fe_flag

A logical vector indicating if the calibration range was exceeded for Fe (TRUE) or not (FALSE).

Cu

A units vector with the measured Cu content [μg/g].

Cu_flag

A logical vector indicating if the calibration range was exceeded for Cu (TRUE) or not (FALSE).

Zn

A units vector with the measured Zn content [μg/g].

Zn_flag

A logical vector indicating if the calibration range was exceeded for Zn (TRUE) or not (FALSE).

As

A units vector with the measured As content [μg/g].

As_flag

A logical vector indicating if the calibration range was exceeded for As (TRUE) or not (FALSE).

Br

A units vector with the measured Br content [μg/g].

Br_flag

A logical vector indicating if the calibration range was exceeded for Br (TRUE) or not (FALSE).

Rb

A units vector with the measured Rb content [μg/g].

Rb_flag

A logical vector indicating if the calibration range was exceeded for Rb (TRUE) or not (FALSE).

Sr

A units vector with the measured Sr content [μg/g].

Sr_flag

A logical vector indicating if the calibration range was exceeded for Sr (TRUE) or not (FALSE).

Ba

A units vector with the measured Ba content [μg/g].

Ba_flag

A logical vector indicating if the calibration range was exceeded for Ba (TRUE) or not (FALSE).

Pb

A units vector with the measured Pb content [μg/g].

Pb_flag

A logical vector indicating if the calibration range was exceeded for Pb (TRUE) or not (FALSE).

C6H10O5N

A units vector with the measured C6H10O5N content [μg/g].

C6H10O5N_flag

A logical vector indicating if the calibration range was exceeded for C6H10O5N (TRUE) or not (FALSE).

Value

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


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