chemistry | R Documentation |
Identify oxides and major, minor and traces elements in a compositional data matrix.
is_element_major(object, ...)
is_element_minor(object, ...)
is_element_trace(object, ...)
is_oxide(object, ...)
## S4 method for signature 'character'
is_oxide(object)
## S4 method for signature 'CompositionMatrix'
is_oxide(object)
## S4 method for signature 'CompositionMatrix'
is_element_major(object, min = 1/100, max = Inf)
## S4 method for signature 'CompositionMatrix'
is_element_minor(object, min = 0.1/100, max = 1/100)
## S4 method for signature 'CompositionMatrix'
is_element_trace(object, min = -Inf, max = 0.1/100)
object |
A |
... |
Currently not used. |
min |
A length-one |
max |
A length-one |
There is no definite classification of what are the major, minor and trace elements are. By default, the following rule of thumb is used:
The major elements are those that define the material under study. Major elements usually have concentrations of above 1%.
Minor elements usually have concentrations between 1% and 0.1%
Trace elements usually have concentrations of less than 0.1%.
A logical
vector.
is_oxide()
uses a regular expression (it does not check if elements exist
or if stoichiometry is valid).
N. Frerebeau
## Data from Day et al. 2011
data("kommos", package = "folio") # Coerce to compositional data
kommos <- remove_NA(kommos, margin = 1) # Remove cases with missing values
coda <- as_composition(kommos, groups = 1) # Use ceramic types for grouping
is_element_major(coda)
is_element_minor(coda)
is_element_trace(coda)
is_oxide(coda)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.