Learn R Programming

aqp (version 2.1.0)

reorderHorizons: Re-order corrupted horizon data

Description

This is a method made available primarily to repair horizon data that have been corrupted relative to their order at time of SoilProfileCollection construction.

There is an option to specify the target order, but this will not update the corresponding metadata entry tracking the original order. Use this functionality at your own risk.

Usage

# S4 method for SoilProfileCollection
reorderHorizons(object, target.order = NULL)

Value

SoilProfileCollection

Arguments

object

A SoilProfileCollection

target.order

A numeric vector of equal length to object. Default value is NULL which restores the internal order of the collection.