aqp2.1.0 package

Algorithms for Quantitative Pedology

accumulateDepths

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

aqp-package

Algorithms for Quantitative Pedology

argillic.clay.increase.depth

Return upper boundary of argillic horizon

coercion-methods

Coerce SoilProfileCollection with as()

depths

Initialize a SoilProfileCollection from data.frame

depthWeights

Return a vector of contributing fractions over a depth interval

flagOverlappingHz

Flag perfectly overlapping horizons within a SoilProfileCollection

aqp_df_class

Get aqp_df_class entry from metadata or return a safe value.

addBracket

Add Depth Brackets

addDiagnosticBracket

Annotate Diagnostic Features

addVolumeFraction

Symbolize Volume Fraction within 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.

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

depthOf

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

col2Munsell

Convert colors into Munsell Notation

collapseHz

Collapse Horizons within Profiles Based on Pattern Matching

colorChart

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

colorContrast

Metrics of Contrast Suitable for Comparing Soil Colors

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

contrastChart

Color Contrast Chart

groupSPC

Store groupings within a profile collection.

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

denormalize

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

depth_units

Get depth units from metadata

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

duplicate

Duplicate Profiles of a SoilProfileCollection

electroStatics_1D

Label placement based on a simulation of electrostatic forces

equivalentMunsellChips

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

estimateAWC

Estimate available water capacity for fine-earth fraction

estimatePSCS

Estimate boundaries of the U.S Soil Taxonomy Particle Size Control Sec...

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

explainPlotSPC

Visual Explanation for plotSPC

fillHzGaps

Find and Fill Horizon Gaps

fixOverlap

Fix Overlap within a Sequence

fragmentClasses

Coarse Fragment Class Labels and Diameter

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

hurst.redness

Hurst (1977) Redness Index

getSoilDepthClass

Generate Soil Depth Class Matrix

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

guessGenHzLevels

Guess Appropriate Ordering for Generalized Horizon Labels

guessHzAttrName

Guess Horizon Slot Column Names

harden.melanization

Harden (1982) Melanization

harden.rubification

Harden (1982) Rubification

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...

hz_dissolve

Dissolving horizon boundaries by grouping variables

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

hz_intersect

Intersecting horizon boundaries by horizon depths

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...

lookup_taxpartsize

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

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

panel.depth_function

Lattice Panel Function for Soil Profiles

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

simulateColor

Simulate Soil Colors

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

invertLabelColor

Make High Contrast Label Colors

isEmpty

Check for "empty" profiles in a SoilProfileCollection

L1_profiles

Create Representative Soil Profiles via L1 Estimator

length

Get the number of profiles in a SoilProfileCollection

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

singlebracket

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

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

overlapMetrics

Find Overlap within a Sequence

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

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

soilTextureColorPal

Soil Texture Color Palettes

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-10-19