data2york {IsoplotR} | R Documentation |
Prepare geochronological data for York regression
Description
Takes geochronology data as input and produces a five-column table with the variables, their uncertainties and error correlations as output. These can subsequently be used for York regression.
Usage
data2york(x, ...)
## Default S3 method:
data2york(x, format = 1, ...)
## S3 method for class 'other'
data2york(x, ...)
## S3 method for class 'UPb'
data2york(x, option = 1, tt = 0, ...)
## S3 method for class 'ArAr'
data2york(x, inverse = TRUE, ...)
## S3 method for class 'ThPb'
data2york(x, inverse = FALSE, ...)
## S3 method for class 'KCa'
data2york(x, inverse = FALSE, ...)
## S3 method for class 'PbPb'
data2york(x, inverse = TRUE, ...)
## S3 method for class 'PD'
data2york(x, exterr = FALSE, inverse = FALSE, ...)
## S3 method for class 'UThHe'
data2york(x, ...)
## S3 method for class 'ThU'
data2york(x, type = 2, generic = TRUE, ...)
Arguments
x |
a five or six column matrix OR an object of class
|
... |
optional arguments |
format |
one of
|
option |
one of
|
tt |
the age of the sample. This is only used if
|
inverse |
toggles between normal and inverse isochron
ratios. If If |
exterr |
If |
type |
Return ‘Rosholt’ or ‘Osmond’ ratios? Rosholt ( Osmond ( |
generic |
If If or if |
Value
a five-column table that can be used as input for
york
-regression.
See Also
Examples
f <- system.file("RbSr1.csv",package="IsoplotR")
dat <- read.csv(f)
yorkdat <- data2york(dat)
fit <- york(yorkdat)