Learn R Programming

OpenMindat (version 1.0.0)

geomaterials_contain_any_but_not_elems: geomaterials that contain any of some given elements but with out any of some other given elements

Description

: Queries the list of geological materials that contain any one of the given elements.

Usage

geomaterials_contain_any_but_not_elems(any_elems_vector,ecl_elms_vector,...)

Value

df, a data frame of geomaterials.

Arguments

any_elems_vector

vector of elements. vector of any elements contained.

ecl_elms_vector

vector of elements. vector of any elements excluded.

...,

Further named parameters.Other optional arguments-Additional arguments.

Details

This function releated to the field "elements_inc" of geomaterials. This function queries the list of geological materials that contain any element of an given list (any_elems). It performs the query operation by looping through each given element and calling the mindat_geomaterial_list function.

Examples

Run this code
if (FALSE) {
df <-geomaterials_contain_any_but_not_elems(c('Fe','S'), c('O'))
}

Run the code above in your browser using DataLab