Get Soil Color Data from a local NASIS Database
Source:R/get_colors_from_NASIS_db.R
get_colors_from_NASIS_db.Rd
Get, format, mix, and return color data from a NASIS database.
Arguments
- SS
fetch data from Selected Set in NASIS or from the entire local database (default:
TRUE
)- method
Aggregation method to handle multiple colors per horizon and moisture state. Default
"dominant"
for dominant condition (or first record) within moisture state. Other options include"mixed"
to calculate mixture usingsimplifyColorData()
and"none"
to do no aggregation (returns a long format representation that may have multiple values per horizon and moisture state)- mixColors
Deprecated. See
method
. Should mixed colors be calculated where multiple colors are populated for the same moisture state in a horizon? DefaultFALSE
takes the dominant color based oncolorpct
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