data2table: export to table

View source: R/postprocess.R

data2tableR Documentation

export to table

Description

convert calibrated SIMS data objects to a flat table

Usage

data2table(x, ...)

## Default S3 method:
data2table(x, ...)

## S3 method for class 'calibrated'
data2table(x, cov = FALSE, log = TRUE, log4lab = TRUE, ...)

## S3 method for class 'delta'
data2table(x, cov = FALSE, ...)

## S3 method for class 'logratios'
data2table(x, log = TRUE, t = NULL, addxy = FALSE, ...)

Arguments

x

an object of class calibrated or delta

...

optional arguments

cov

logical. If TRUE, returns the logratios along with the full covariance matrix including inter-sample error correlations.

log

logical. If TRUE, returns logratios.

log4lab

logical. If TRUE, adds ‘ln[’ to the column labels if log=TRUE.

t

The time to which the logratio signal should be interpolated.

addxy

logical. If TRUE, adds two columns to the output table with the x- and y-positions of the different aliquots. Only relevant to Cameca data, so ignored for SHRIMP data.

Value

a matrix

Examples

## Not run: 
data('Cameca_UPb',package='simplex')
dc <- drift(x=Cameca_UPb)
lr <- logratios(x=dc)
cal <- calibration(lr=lr,stand=standard(preset='Plesovice-t'))
cd <- calibrate(cal)
tab <- data2table(cd)

## End(Not run)

pvermees/simplex documentation built on Sept. 2, 2023, 12:40 p.m.