.json file format.settings(setting = NA, ..., fname = NA)fname is provided, this should be one
of either:'lambda': to get and set decay constants
'iratio': isotopic ratios
'imass': isotopic molar masses
'mindens': mineral densities
'etchfact': fission track etch efficiency factors
'tracklength': equivalent isotropic fission track length
setting: 'lambda': the isotope of interest (one of either
"fission", "U238", "U235", "Th232",
"Re187", "Sm147", "Rb87", or "K40")
PLUS (optionally) the decay constant value and its analytical
error. Omitting these two numbers simply returns the existing
values.'iratio': the isotopic ratio of interest (one of
either "Ar40Ar36", "Ar38Ar36", "Rb85Rb87",
"Sr88Sr86", "Sr87Sr86", "Sr84Sr86",
"Re185Re187", "Os184Os192" "Os186Os192",
"Os187Os192", "Os188Os192", "Os189Os192",
"Os190Os192", "U238U235", "Sm144Sm152",
"Sm147Sm152", "Sm148Sm152", "Sm149Sm152",
"Sm150Sm152", "Sm154Sm152", "Nd142Nd144",
"Nd143Nd144", "Nd145Nd144", "Nd146Nd144",
"Nd148Nd144", or "Nd150Nd144") PLUS (optionally) the
isotopic ratio and its analytical error. Omitting these two
numbers simply returns the existing values.'imass': the (isotopic) molar mass of interest
(one of either "U", "Rb", "Rb85",
"Rb87", "Sr84", "Sr86", "Sr87",
"Sr88", "Re", "Re185", "Re187",
"Os", "Os184", "Os186", "Os187",
"Os188", "Os189", "Os190", "Os192",
"Sm" or "Nd") PLUS (optionally) the molar mass and
its analytical error. Omitting these two numbers simply returns
the existing values.'mindens': the mineral of interest (one of either
"apatite" or "zircon") PLUS the mineral
density. Omitting this number simply returns the existing value.'etchfact': the mineral of interest (one of either
"apatite" or "zircon") PLUS the etch efficiency
factor. Omitting this number simply returns the existing value.'tracklength': the mineral of interest (one of either
"apatite" or "zircon") PLUS the equivalent isotropic
fission track length. Omitting this number simply returns the
existing value.
.json filesetting=NA and fname=NA, returns a
.json string if ... contains only the name of an isotope, isotopic ratio,
element, or mineral and no new value, settings returns
either a scalar with the existing value, or a two-element vector
with the value and its uncertainty.# load and show the default constants that come with IsoplotR
json <- system.file("constants.json",package="IsoplotR")
settings(fname=json)
print(settings())
# use the decay constant of Kovarik and Adams (1932)
settings('lambda','U238',0.0001537,0.0000068)
print(settings('lambda','U238'))
# returns the 238U/235U ratio of Hiess et al. (2012):
print(settings('iratio','U238U235'))
# use the 238U/235U ratio of Steiger and Jaeger (1977):
settings('iratio','U238U235',138.88,0)
print(settings('iratio','U238U235'))
Run the code above in your browser using DataLab