aqp2.0.4 package

Algorithms for Quantitative Pedology

aqp-package

Algorithms for Quantitative Pedology

overlapMetrics

Find Overlap within a Sequence

panel.depth_function

Lattice Panel Function for Soil Profiles

estimatePSCS

Estimate boundaries of the particle size control section (U.S Soil Tax...

estimateSoilColor

Estimate dry soil colors from moist soil colors and vice versa.

estimateSoilDepth

Estimate Soil Depth

evalGenHZ

Evaluate Generalized Horizon Labels

evalMissingData

Evaluate Missing Data within a SoilProfileCollection

isEmpty

Check for "empty" profiles in a SoilProfileCollection

L1_profiles

Create Representative Soil Profiles via L1 Estimator

aqp_df_class

Get aqp_df_class entry from metadata or return a safe value.

accumulateDepths

Accumulate horizon depths, and reflect reversed depths, relative to ne...

addBracket

Add Depth Brackets

addDiagnosticBracket

Annotate Diagnostic Features

addVolumeFraction

Symbolize Volume Fraction on a Soil Profile Collection Plot

aggregateColor

Summarize Soil Colors

aggregateSoilDepth

Probabilistic Estimation of Soil Depth within Groups

alignTransect

Calculate Relative Positions from Transect Data

allocate

Allocate soil properties within various classification systems.

length

Get the number of profiles in a SoilProfileCollection

argillic.clay.increase.depth

Return upper boundary of argillic horizon

barron.torrent.redness.LAB

Barron & Torrent (1986) Redness Index in LAB color space

bootstrapSoilTexture

Bootstrap Soil Texture Data

brierScore

Multinominal Brier Score

buntley.westin.index

Buntley-Westin (1965) Index

checkHzDepthLogic

Check a SoilProfileCollection object for errors in horizon depths.

checkSPC

Test for a valid SoilProfileCollection

coercion-methods

Coerce SoilProfileCollection with as()

col2Munsell

Convert colors into Munsell Notation

colorChart

Visualize soil colors in Munsell notation according to within-group fr...

colorContrast

Metrics of Contrast Suitable for Comparing Soil Colors

duplicate

Duplicate Profiles of a SoilProfileCollection

colorContrastPlot

Color Contrast Plot

colorQuantiles

Soil Color Range via Quantiles

combine-SoilProfileCollection-method

Combine SoilProfileCollection objects

compareSites

Compare Site Level Attributes of a SoilProfileCollection

compositeSPC

Return a list representation of site and horizon level data

confusionIndex

Confusion Index

electroStatics_1D

Label placement based on a simulation of electrostatic forces

contrastChart

Color Contrast Chart

contrastClass

Soil Color Contrast

correctAWC

Apply rock fragment or salt correction to available water content

crit.clay.argillic

Determines threshold (minimum) clay content for argillic upper bound

equivalentMunsellChips

Identify "equivalent" (whole number value/chroma) Munsell chips

simulateColor

Simulate Soil Colors

denormalize

Create a (redundant) horizon-level attribute from a site-level attribu...

depth_units

Get depth units from metadata

depthOf

Get top or bottom depths of horizons matching a regular expression pat...

depths

Initialize a SoilProfileCollection from data.frame

depthWeights

Return a vector of contributing fractions over a depth interval

diagnostic_hz

Get or Set Diagnostic Horizon data in a SoilProfileCollection

dice-SoilProfileCollection-method

Efficient Slicing of SoilProfileCollection Objects

dollarsign-set

Set data in column of horizon or site data in a SoilProfileCollection

dollarsign

Get data from column of horizon or site data in a SoilProfileCollectio...

doublebracket-set

Add or change column of horizon or site data in a SoilProfileCollectio...

doublebracket

Get column of horizon or site data in a SoilProfileCollection

estimateAWC

Estimate available water capacity for fine-earth fraction

explainPlotSPC

Visual Explanation for plotSPC

fillHzGaps

Find and Fill Horizon Gaps

fixOverlap

Fix Overlap within a Sequence

flagOverlappingHz

Flag perfectly overlapping horizons within a SoilProfileCollection

fragmentClasses

Coarse Fragment Class Labels and Diameter

guessHzAttrName

Guess Horizon Slot Column Names

fragmentSieve

Sieve the Coarse Fraction of Soil

generalize.hz

Generalize Horizon Names

genhzTableToAdjMat

Convert cross-tabulation to adjacency matrix.

genSlabLabels

Generate Labels for Slabs

get.increase.matrix

Compute Pair-wise Distances of Soil Properties over Depth

get.ml.hz

Determine ML Horizon Boundaries

getArgillicBounds

Estimate upper and lower boundary of argillic diagnostic subsurface ho...

getCambicBounds

Find all intervals that are potentially part of a Cambic horizon

getClosestMunsellChip

Get Approximate Munsell Chip

getLastHorizonID

Get IDs of Deepest Horizons by Profile

getSoilDepthClass

Generate Soil Depth Class Matrix

harden.melanization

Harden (1982) Melanization

harden.rubification

Harden (1982) Rubification

getSurfaceHorizonDepth

Determine thickness of horizons (continuous from surface) matching a p...

GHL

Get or Set Generalized Horizon Label (GHL) Column Name

glom

Subset soil horizon data using a depth or depth interval

glomApply

Subset an SPC by applying glom to each profile

grepSPC

Subset SPC with pattern-matching for text-based attributes

groupedProfilePlot

Grouped Soil Profile Plot

groupSPC

Store groupings within a profile collection.

guessGenHzLevels

Guess Appropriate Ordering for Generalized Horizon Labels

harmonize-SoilProfileCollection-method

Harmonize a property by profile-level denormalization for convenient v...

hasDarkColors

Find horizons with colors darker than a Munsell hue, value, chroma thr...

horizonColorIndices

Horizon Color Indices

horizonDepths

Set horizon depth column names

horizonNames

Set horizon column names

horizons

Retrieve horizon data from SoilProfileCollection

huePosition

Munsell Hue Reference and Position Searching

huePositionCircle

Visual Description of Munsell Hue Ordering

hurst.redness

Hurst (1977) Redness Index

hz_dissolve

Dissolving horizon boundaries by grouping variables

hz_intersect

Intersecting horizon boundaries by horizon depths

invertLabelColor

Make High Contrast Label Colors

hz_lag

Find lagged horizon values

hz_segment

Segmenting of Soil Horizon Data by Depth Interval

hz_to_taxpartsize

Allocate Particle Size Class for the Control Section.

HzDepthLogicSubset

Subset SoilProfileCollection Objects or Horizons via `checkHzDepthLo...

hzDepthTests

Tests of horizon depth logic

hzDesgn

Get horizon designation column name

hzdesgnname

Get or Set Horizon Designation Column Name

hzDistinctnessCodeToOffset

Convert Horizon Boundary Distinctness to Vertical Offset

hzID

Set horizon IDs

hzidname

Set horizon ID column name

hzMetadata

Get horizon-level metadata

hzmetaname

Get or Set Horizon Metadata Column Name

hzOffset

Horizons Above or Below

hztexclname

Get or Set Horizon Texture Class Column Name

hzTopographyCodeToLineType

Convert Horizon Boundary Topography to Line Type

hzTopographyCodeToOffset

Convert Horizon Boundary Topography to Vertical Offset

hzTransitionProbabilities

Horizon Transition Probabilities

idname

Get profile ID column name

initSpatial

Initialize Spatial Data in a SoilProfileCollection

lookup_taxpartsize

Ranking Systems for USDA Taxonomic Particle-Size and Substitute Classe...

lunique

Eliminate duplicate instances of profile IDs in a list of SoilProfileC...

max

Get the maximum bottom depth in a SoilProfileCollection

metadata

Retrieve metadata from SoilProfileCollection

min

Get the minimum bottom depth in a SoilProfileCollection

missingDataGrid

Missing Data Grid

mixMunsell

Mix Munsell Colors via Spectral Library

mollic.thickness.requirement

Calculate the minimum thickness requirement for Mollic epipedon

munsell2rgb

Convert Munsell Color Notation to other Color Space Coordinates (sRGB ...

munsell2spc-SoilProfileCollection-method

Merge Munsell Hue, Value, Chroma converted to sRGB & CIELAB into a Soi...

mutate_profile

Transform a SPC (by profile) with a set of expressions

names

Get names of columns in site and horizons table

NCSP

Numerical Classification of Soil Profiles

nrow

Get the number of horizons in a SoilProfileCollection

parseMunsell

Parse Munsell Color Notation

pbindlist

Combine a list of SoilProfileCollection objects

perturb

Perturb soil horizon depths using boundary distinctness

plot_distance_graph

Between Individual Distance Plot

plotColorMixture

Visualize Spectral Mixing of Munsell Colors

plotColorQuantiles

Visualize Color Quantiles

plotMultipleSPC

Plot Multiple SoilProfileCollection Objects

previewColors

Preview Colors

profile_compare

Deprecated: Numerical Soil Profile Comparison

profile_id

Set profile IDs

profileApply

Iterate over profiles in a SoilProfileCollection

profileGroupLabels

Soil Profile Group Labels

profileInformationIndex

Soil Profile Information Index

quickSPC

Quickly Assemble a SoilProfileCollection

random_profile

Random Profile

reaction

Convert pH to/from Reaction Classes

rebuildSPC

Rebuild a SoilProfileCollection object

reduceSPC

Select a subset of columns from a SoilProfileCollection

reorderHorizons

Re-order corrupted horizon data

repairMissingHzDepths

Repair Problematic Lower Horizon Depths

replaceHorizons

Replace Data in Horizon Slot

restrictions

Get or Set Restriction data in a SoilProfileCollection

rgb2munsell

sRGB to Munsell Color Conversion

SANN_1D

Fix Overlap within a Sequence via Simulated Annealing

shannonEntropy

Shannon Entropy

show

SoilProfileCollection show method

sim

DEPRECATED Simulate Soil Profiles

singlebracket

Matrix/data.frame-like access to profiles and horizons in a SoilProfil...

site

Retrieve site data from SoilProfileCollection

siteNames

Set site column names

slab

Slab-Wise Aggregation of SoilProfileCollection Objects

slice

Slicing of SoilProfileCollection Objects

slicedHSD

Tukey's HSD Over Slices

soilColorSignature

Soil Profile Color Signatures

soilPalette

Soil Color Palette

SoilProfileCollection-class

An S4 object representation of a group of soil profiles.

SoilProfileCollection-crs

Get or Set Coordinate Reference System for SoilProfileCollection

SoilProfileCollection-plotting-methods

Create Soil Profile Sketches

SoilTextureLevels

Ranking Systems for USDA Soil Texture Classes

spc_in_sync

Quickly assess relative state of site and horizon slots

spc2mpspline-SoilProfileCollection-method

SoilProfileCollection wrapper for mpspline2::mpspline()

spec2Munsell

Convert reflectance spectra to closest Munsell chip

split-SoilProfileCollection-method

Split a SoilProfileCollection object into a list of SoilProfileCollect...

splitLogicErrors

Split a SoilProfileCollection into a list based on types of horizon ...

subApply

Subset SPC based on result of performing function on each profile

subset-SoilProfileCollection-method

Subset a SoilProfileCollection with logical expressions

subsetHz-SoilProfileCollection-method

Subset the horizons in a SoilProfileCollection using logical criteria

subsetProfiles

DEPRECATED use subset

summarizeSPC

Perform summaries on groups (from group_by) and create new site or h...

tauW

Compute weighted naive and tau statistics for a cross-classificati...

texture

Textural conversions

textureTriangleSummary

Soil Texture Low-RV-High as Defined by Quantiles

thicknessOf

Calculate Thickness of Horizons Matching Logical Criteria

thompson.bell.darkness

Thompson-Bell (1996) Index

transform

Transform a SPC with expressions based on site or horizon level attrib...

unique

Uniqueness within a SoilProfileCollection via MD5 Hash

unroll

Unroll Genetic Horizons

validSpatialData

Check for valid spatial reference of profiles

warpHorizons

Inflate / Deflate Horizon Thickness

xtableTauW

Format a LaTeX table with results

The Algorithms for Quantitative Pedology (AQP) project was started in 2009 to organize a loosely-related set of concepts and source code on the topic of soil profile visualization, aggregation, and classification into this package (aqp). Over the past 8 years, the project has grown into a suite of related R packages that enhance and simplify the quantitative analysis of soil profile data. Central to the AQP project is a new vocabulary of specialized functions and data structures that can accommodate the inherent complexity of soil profile information; freeing the scientist to focus on ideas rather than boilerplate data processing tasks <doi:10.1016/j.cageo.2012.10.020>. These functions and data structures have been extensively tested and documented, applied to projects involving hundreds of thousands of soil profiles, and deeply integrated into widely used tools such as SoilWeb <https://casoilresource.lawr.ucdavis.edu/soilweb-apps>. Components of the AQP project (aqp, soilDB, sharpshootR, soilReports packages) serve an important role in routine data analysis within the USDA-NRCS Soil Science Division. The AQP suite of R packages offer a convenient platform for bridging the gap between pedometric theory and practice.

  • Maintainer: Dylan Beaudette
  • License: GPL (>= 3)
  • Last published: 2024-07-30