Learn R Programming

aqp (version 2.1.0)

depthWeights: Return a vector of contributing fractions over a depth interval

Description

depthWeights() calculates the contributing fraction for each pair of horizon top and bottom depths, given an upper and lower boundary.

Usage

depthWeights(top, bottom, upper, lower)

Value

A named list.

Arguments

top

A numeric vector of horizon top depths.

bottom

A numeric vector of horizon bottom depths.

upper

A unit length numeric vector with upper boundary.

lower

A unit length numeric vector with lower boundary.

Author

Andrew G. Brown.