Learn R Programming

provenance (version 4.4)

restore: Undo the effect of hydraulic sorting

Description

Restore the detrital composition back to a specified source rock density (SRD)

Usage

restore(X, dens, target = 2.71)

Value

an object of class SRDcorrected, i.e. an object of class compositional which is a daughter of class compositional

containing the restored composition, plus one additional member called restoration, containing the intermediate steps of the SRD correction algorithm.

Arguments

X

an object of class compositional

dens

a vector of rock and mineral densities

target

the target density (in g/cm3)

Author

Alberto Resentini and Pieter Vermeesch

References

Garzanti E, Ando, S and Vezzoli, G. "Settling equivalence of detrital minerals and grain-size dependence of sediment composition." Earth and Planetary Science Letters 273.1 (2008): 138-151.

See Also

minsorting

Examples

Run this code
data(Namib,densities)
rescomp <- restore(Namib$PTHM,densities,2.71)
HMcomp <- c("zr","tm","rt","sph","ap","ep","gt",
            "st","amp","cpx","opx")
amcomp <- amalgamate(rescomp,Plag="P",HM=HMcomp,Opq="opaques")
plot(ternary(amcomp),showpath=TRUE)

Run the code above in your browser using DataLab