get_SDA_pmgroupname: Get map unit parent material group information from Soil Data...

View source: R/get_SDA_pmgroupname.R

get_SDA_pmgroupnameR Documentation

Get map unit parent material group information from Soil Data Access

Description

Get map unit parent material group information from Soil Data Access

Usage

get_SDA_pmgroupname(
  areasymbols = NULL,
  mukeys = NULL,
  WHERE = NULL,
  method = "DOMINANT COMPONENT",
  simplify = TRUE,
  miscellaneous_areas = FALSE,
  query_string = FALSE,
  dsn = NULL
)

Arguments

areasymbols

vector of soil survey area symbols

mukeys

vector of map unit keys

WHERE

character containing SQL WHERE clause specified in terms of fields in legend, mapunit, component, or copmgrp tables, used in lieu of mukeys or areasymbols

method

One of: "Dominant Component", "Dominant Condition", "None"

simplify

logical; group into generalized parent material groups? Default TRUE

miscellaneous_areas

Include miscellaneous areas (non-soil components) in results? Default: FALSE.

query_string

Default: FALSE; if TRUE return a character string containing query that would be sent to SDA via SDA_query

dsn

Path to local SQLite database or a DBIConnection object. If NULL (default) use Soil Data Access API via SDA_query().

Details

Default method is "Dominant Component" to get the dominant component (highest percentage). Use "Dominant Condition" or dominant parent material condition (similar conditions aggregated across components). Use "None" for no aggregation (one record per component).

Value

a data.frame

Author(s)

Jason Nemecek, Chad Ferguson, Andrew Brown


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