Learn R Programming

OpenMindat (version 1.0.1)

geomaterials_contain_all_but_not_elems: geomaterials that contain all of some given elements but without any of some other given elements.

Description

Queries the list of geomaterials that contain all the given elements listed in icl_elms, but do not contain the given elements listed in ecl_elms

Usage

geomaterials_contain_all_but_not_elems(icl_elms, ecl_elms, ...)

Value

df, a data frame of geomaterials.

Arguments

icl_elms

vector of elements.

ecl_elms

vector of elements.

...,

Further named parameters.Other optional arguments-Additional arguments.

Details

This function releated to the field "elements_inc" and "elements_exc" of geomaterials. This function queries the list of geological materials that contain an given list of elements (icl_elms), but not contain the other list of elements (ecl_elms). It performs the query operation by calling the mindat_geomaterial_list function.

Examples

Run this code
if (FALSE) {
geomaterials_contain_all_but_not_elems(c('Fe','S'), c('O'),fields ="id,name")
}

Run the code above in your browser using DataLab