What is new in aqp 2.x?

This is a major update to {aqp} that may create some issues for code depending on specific inputs/outputs as of {aqp} <= 1.42, particularly those relying on slice(), slab(), and profile_compare(). As of {aqp} 2.0, slice() and profile_compare() are deprecated, but will continue to work for the rest of calendar year 2023. There are no plans to maintain these functions beyond {aqp} 2.0. The new version of slab() is a drop-in replacement for the previous version.

See the manual pages for dice(), NCSP(), and slab(). Note that these new / updated functions perform stricter tests for horizon depth logic errors. Messages and warnings are issued when invalid depth logic is reported by checkHzDepthLogic(). New functions accumulateDepths(), repairMissingHzDepths(), and fillHzGaps() can usually salvage problematic profiles.

The replace_na and add_soil_flag arguments to profile_compare() are not present in NCSP(); missing data are always replaced by maximum dissimilarity (1 when Gower’s distance metric is used) and the soil/non-soil matrix is always used to compare profiles of different depth.

Notable Changes

Major changes to plotSPC()

New Features

Incremental changes, should have no effect on previous code