def_minerals {rmacrostrat}R Documentation

Define minerals

Description

A function to retrieve mineral definitions from the Macrostrat database based on user-specified arguments. If no arguments are provided, all definitions are returned.

Usage

def_minerals(mineral = NULL, mineral_type = NULL, element = NULL)

Arguments

mineral

character. The name of a mineral (e.g., "calcite") to return a definition for.

mineral_type

character. The type of mineral (e.g., "feldspar") to return a definition for.

element

character. The chemical element abbreviation of a mineral (e.g., "CaCO3") to return a definition for. Note: abbreviations are case sensitive.

Value

A data.frame containing the following columns:

Developer(s)

Lewis A. Jones

Reviewer(s)

Bethany Allen

See Also

Geologic features and attributes: def_econs(), def_environments(), def_grain_sizes(), def_lithologies(), def_lithology_att(), def_measurements(), def_structures()

Examples


  # Get all mineral definitions
  ex1 <- def_minerals()
  # Get mineral definitions by type
  ex2 <- def_minerals(mineral_type = "element")


[Package rmacrostrat version 1.0.0 Index]