What is new in aqp 2.0?"

knitr::opts_chunk$set(
  message = FALSE,
  warning = FALSE,
  background = '#F7F7F7',
  fig.align = 'center',
  dev = 'png',
  comment = "#>"
)

# keep examples from using more than 2 cores
data.table::setDTthreads(Sys.getenv("OMP_THREAD_LIMIT", unset = 2))

options(width = 100, stringsAsFactors = FALSE, timeout = 600)

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



Try the aqp package in your browser

Any scripts or data that you put into this service are public.

aqp documentation built on Sept. 8, 2023, 5:45 p.m.