get_colors_from_NASIS_db: Get Soil Color Data from a local NASIS Database

View source: R/get_colors_from_NASIS_db.R

get_colors_from_NASIS_dbR Documentation

Get Soil Color Data from a local NASIS Database

Description

Get, format, mix, and return color data from a NASIS database.

Usage

get_colors_from_NASIS_db(SS = TRUE, mixColors = TRUE, dsn = NULL)

Arguments

SS

fetch data from Selected Set in NASIS or from the entire local database (default: TRUE)

mixColors

should mixed colors be calculated (Default: TRUE) where multiple colors are populated for the same moisture state in a horizon? FALSE takes the dominant color based on colorpct or first record based on horizon ID (phiid) sorting for "moist" and "dry" state. Pedon Horizon Color records without a moisture state populated are ignored.

dsn

Optional: path to local SQLite database containing NASIS table structure; default: NULL

Value

A data.frame with the results.

Author(s)

Jay M. Skovlin and Dylan E. Beaudette

See Also

simplifyColorData, get_hz_data_from_NASIS_db, get_site_data_from_NASIS_db


soilDB documentation built on Nov. 17, 2023, 1:09 a.m.