amalgamate | R Documentation |
Adds several components of a composition together into a single component
amalgamate(x, ...)
## Default S3 method:
amalgamate(x, ...)
## S3 method for class 'compositional'
amalgamate(x, ...)
## S3 method for class 'counts'
amalgamate(x, ...)
## S3 method for class 'SRDcorrected'
amalgamate(x, ...)
## S3 method for class 'varietal'
amalgamate(x, ...)
x |
a compositional dataset |
... |
a series of new labels assigned to strings or vectors of strings denoting the components that need amalgamating |
an object of the same class as X
with fewer
components
data(Namib)
HMcomponents <- c("zr","tm","rt","TiOx","sph","ap","ep",
"gt","st","amp","cpx","opx")
am <- amalgamate(Namib$PTHM,feldspars=c("KF","P"),
lithics=c("Lm","Lv","Ls"),heavies=HMcomponents)
plot(ternary(am))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.