data2york: Prepare geochronological data for York regression

Description Usage Arguments Value See Also Examples

View source: R/york.R

Description

Takes geochronology data as input and produces a five-column table as output, which can be used for York regression.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
data2york(x, ...)

## Default S3 method:
data2york(x, format = 1, ...)

## S3 method for class 'UPb'
data2york(x, wetherill = TRUE, ...)

## S3 method for class 'ArAr'
data2york(x, inverse = TRUE, ...)

## S3 method for class 'KCa'
data2york(x, ...)

## S3 method for class 'PbPb'
data2york(x, inverse = TRUE, ...)

## S3 method for class 'PD'
data2york(x, exterr = 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 UPb, PbPb, ArAr, ThU, UThHe, or PD (which includes objects of class RbSr, SmNd, LuHf and ReOs), generated by the read.data(...) function

...

optional arguments

format

one of

1. X, s[X], Y, s[Y], rho

where rho is the error correlation between X and Y, or

2. X/Z, s[X/Z], Y/Z, s[Y/Z], X/Y, s[X/Y] for which the error correlations are automatically computed from the redundancy of the three ratios.

wetherill

If TRUE, returns a table with X=7/5, sX=s[7/5], Y=6/8, sY=s[6/8], rXY

If FALSE, returns a table with X=8/6, sX=s[8/6], Y=7/6, sY=s[7/6], rho=rXY

inverse

If x has class ArAr and inverse=FALSE, returns a table with columns X=9/6, sX=s[9/6], Y=0/6, codesY=s[0/6], rXY

If x has class ArAr and inverse=TRUE, returns a table with columns X=9/0, sX=s[9/0], Y=6/0, codesY=s[6/0], rXY

If x has class PbPb and inverse=FALSE, returns a table with columns X=6/4, sX=s[6/4], Y=7/4, codesY=s[7/4], rXY

If x has class PbPb and inverse=TRUE, returns a table with columns X=4/6, sX=s[4/6], Y=7/6, sY=s[7/6], rXY

exterr

If TRUE, propagates the external uncertainties (e.g. decay constants) into the output errors.

type

Return ‘Rosholt’ or ‘Osmond’ ratios?

Rosholt (type=1) returns X=8/2, sX=s[8/2], Y=0/2, sY=s[0/2], rXY.

Osmond (type=2) returns X=2/8, sX=s[2/8], Y=0/8, sY=s[0/8], rXY.

generic

If TRUE, uses the following column headers: X, sX, Y, sY, rXY.

If FALSE and type=1, uses U238Th232, errU238Th232, Th230Th232, errTh230Th232, rho

or if FALSE and type=2, uses Th232U238, errTh232U238, Th230U238, errTh230U238, rho.

Value

a five-column table that can be used as input for york-regression.

See Also

york

Examples

1
2
3
4
f <- system.file("RbSr1.csv",package="IsoplotR")
dat <- read.csv(f)
yorkdat <- data2york(dat)
fit <- york(yorkdat)

IsoplotR documentation built on Dec. 9, 2018, 1:04 a.m.