Learn R Programming

georefdatar (version 0.6.5)

minSearch: Find minerals by their names or symbols

Description

Searches for minerals by their names and symbols using a regular expression. By default cases are ignored.

Usage

minSearch(pattern, ignore.case = TRUE)

Value

data.frame of minerals where the given pattern matches.

Arguments

pattern

regular expression for the mineral to search

ignore.case

switch case insensitivity on (default) or off

See Also

List of minerals, minsForChemistry()

Examples

Run this code
minSearch('alm')
minSearch('Pyh$', ignore.case = FALSE)

Run the code above in your browser using DataLab