filter_geochem: Filter KSSL Geochemical Table

View source: R/filter_KSSL.R

filter_geochemR Documentation

Filter KSSL Geochemical Table

Description

A function to subset KSSL "geochem" / elemental analysis result table to obtain rows/columns based on: column name, preparation code, major / trace element method.

Usage

filter_geochem(
  geochem,
  columns = NULL,
  prep_code = NULL,
  major_element_method = NULL,
  trace_element_method = NULL
)

Arguments

geochem

geochemical data, as returned by fetchKSSL

columns

Column name(s) to include in result

prep_code

Character vector of prep code(s) to include in result.

major_element_method

Character vector of major element method(s) to include in result.

trace_element_method

Character vector of trace element method(s) to include in result.

Value

A data.frame, subset according to the constraints specified in arguments.

Author(s)

Andrew G. Brown.


soilDB documentation built on Sept. 11, 2024, 8:28 p.m.