subset.powdRlib {powdR} | R Documentation |
Subset a powdRlib object
Description
subset.powdRlib
is designed to provide an easy way of
subsetting a powdRlib
object by defining the phase ID's
that the user wishes to either keep or remove.
Usage
## S3 method for class 'powdRlib'
subset(x, refs, mode, ...)
Arguments
x |
a |
refs |
a string of the phase IDs or names of reference patterns to be subset. The ID's
or names supplied must be present within the |
mode |
denotes whether the phase IDs or names defined in the |
... |
other arguments |
Value
A powdRlib
object.
Examples
#Load the minerals library
data(minerals)
minerals_keep <- subset(minerals,
refs = c("QUA.1", "QUA.2"),
mode = "keep")
minerals_remove <- subset(minerals,
refs = c("QUA.1", "QUA.2"),
mode = "remove")
[Package powdR version 1.3.0 Index]