Learn R Programming

IsoplotR (version 0.5)

read.data: Read geochronology data

Description

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

Usage

read.data(x, ...)
"read.data"(x, method = "Pb206U238", format = 1, ...)
"read.data"(x, method = "U-Pb", format = 1, ...)

Arguments

x
a file name (.csv format) or matrix
...
optional arguments to the read.csv function
method
one of 'U-Pb', 'Ar-Ar', 'Rb-Sr', 'Sm-Nd', 'Re-Os', 'U-Th-He', 'fission tracks', 'cosmogenic nuclides' or 'other'
format
formatting option, depends on the value of method. If method = 'U-Pb', then format is one of either:

1: 7/6, s[7/6], 6/8, s[6/8], 7/5, s[7/5]

(other formats will be added later)

Value

an object of class 'UPb', 'ArAr', 'RbSr', 'SmNd', 'ReOs', 'UThHe', 'fission', 'cosmogenics', or 'other'

Examples

Run this code
# load one of the built-in .csv files:
data(examples)#fname <- system.file("UPb.csv",package="IsoplotR")
#UPb <- read.data(fname,'U-Pb')
concordia(examples$UPb)

Run the code above in your browser using DataLab