Learn R Programming

IsoplotR (version 0.11)

read.data: Read geochronology data

Description

Cast a .csv file or a matrix into one of IsoplotR's data classes

Usage

read.data(x, ...)

# S3 method for default read.data(x, method = "U-Pb", format = 1, ...)

# S3 method for matrix read.data(x, method = "U-Pb", format = 1, ...)

Arguments

x
either a file name (.csv format) OR a matrix
...
optional arguments to the read.csv function
method
one of 'U-Pb', 'Ar-Ar', 'detritals', Rb-Sr, Sm-Nd, Re-Os, 'U-Th-He', 'fissiontracks' or 'other'
format
formatting option, depends on the value of method.

if method='U-Pb', then format is one of either:

  1. 7/5, s[7/5], 6/8, s[6/8], rho
  2. 8/6, s[8/6], 7/6, s[7/6] (, rho)
  3. X=7/6, s[X], Y=7/5, s[Y], Z=6/8, s[Z] (, rho[X,Y]) (, rho[Y,Z])

where optional columns are marked in round brackets

if method='Ar-Ar', then format is one of either:

  1. 9/6, s[9/6], 0/6, s[0/6], rho (, 39)
  2. 6/0, s[6/0], 9/0, s[9/0] (, rho) (, 39)
  3. 9/0, s[9/0], 6/0, s[6/0], 9/6, s[9/6] (, 39)

if method='Rb-Sr', then format is one of either:

  1. Rb87/Sr86, s[Rb87/Sr86], Sr87/Sr86, s[Sr87/Sr86] (, rho)
  2. Rb, s[Rb], Sr, s[Sr], Sr87/Sr86, s[Sr87/Sr86]

where Rb and Sr are in ppm

if method='Sm-Nd', then format is one of either:

  1. Sm147/Nd144, s[Sm147/Nd144], Nd143/Nd144, s[Nd143/Nd144] (, rho)
  2. Sm, s[Sm], Nd, s[Nd], Nd143/Nd144, s[Nd143/Nd144]

where Sm and Nd are in ppm

if method='Re-Os', then format is one of either:

  1. Re187/Os188, s[Re187/Os188], Os187/Os188, s[Os187/Os188] (, rho)
  2. Re, s[Re], Os, s[Os], Os187/Os188, s[Os187/Os188]

where Re and Os are in ppm

if method='fissiontracks', then format is one of either:

  1. the External Detector Method (EDM), which requires a \(\zeta\)-calibration constant and its uncertainty, the induced track density in a dosimeter glass, and a table with the spontaneous and induced track densities.

  • LA-ICP-MS-based fission track data using the \(\zeta\)-calibration method, which requires a 'session \(\zeta\)' and its uncertainty and a table with the number of spontaneous tracks, the area over which these were counted and one or more U/Ca- or U-concentration measurements and their analytical uncertainties.
  • LA-ICP-MS-based fission track data using the 'absolute dating' method, which only requires a table with the the number of spontaneous tracks, the area over which these were counted and one or more U/Ca- or U-concentration measurements and their analytical uncertainties.
  • Value

    an object of class UPb, ArAr, UThHe, ReOs, SmNd, RbSr, detritals, fissiontracks or other

    Details

    Example input files can be found by using R's system.file(...) function:
    1. method = 'U-Pb' and format = 1: file.show(system.file("UPb1.csv",package="IsoplotR"))
    2. method = 'U-Pb' and format = 2: file.show(system.file("UPb2.csv",package="IsoplotR"))
    3. method = 'U-Pb' and format = 3: file.show(system.file("UPb3.csv",package="IsoplotR"))
    4. method = 'Ar-Ar' and format = 1: file.show(system.file("ArAr1.csv",package="IsoplotR"))
    5. method = 'Ar-Ar' and format = 2: file.show(system.file("ArAr2.csv",package="IsoplotR"))
    6. method = 'Ar-Ar' and format = 3: file.show(system.file("ArAr3.csv",package="IsoplotR"))
    7. method = 'Re-Os': file.show(system.file("ReOs.csv",package="IsoplotR"))
    8. method = 'Rb-Sr': file.show(system.file("RbSr.csv",package="IsoplotR"))
    9. method = 'Sm-Nd': file.show(system.file("SmNd.csv",package="IsoplotR"))
    10. method = 'U-Th-He': file.show(system.file("UThHe.csv",package="IsoplotR"))
    11. method = 'fissiontracks' and format = 1: file.show(system.file("FT1.csv",package="IsoplotR"))
    12. method = 'fissiontracks' and format = 2: file.show(system.file("FT2.csv",package="IsoplotR"))
    13. method = 'fissiontracks' and format = 3: file.show(system.file("FT3.csv",package="IsoplotR"))
    14. method = 'detritals': file.show(system.file("DZ.csv",package="IsoplotR"))
    15. method = 'detritals': file.show(system.file("MountTom.csv",package="IsoplotR")) file.show(system.file("spectrum",package="IsoplotR")) file.show(system.file("average.csv",package="IsoplotR"))

    Examples

    Run this code
    # load one of the built-in .csv files:
    data(examples)
    concordia(examples$UPb)
    

    Run the code above in your browser using DataLab