Learn R Programming

doolkit (version 1.42.2)

rrate: relief rate

Description

Compute the relief rate from a sub-sample of a 3d triangle mesh. For instance, the relief rate could be computed from the portion of a molar above the lowermost point of its central basin, compared to the whole tooth.

Usage

rrate(uncropped, cropped, origin = TRUE)

Value

A single relief rate value.

Arguments

uncropped

object of class mesh3d. Should entirely contain the 'cropped' argument.

cropped

object of class mesh3d. Should be part of the 'uncropped' argument.

origin

logical, if TRUE both cropped and uncropped mesh are translated along the z-axis so that the lowest z of the uncropped mesh = 0; see dkorigin

References

tools:::Rd_expr_doi("10.1002/ajpa.23916")Thiery et al. (2019)

Examples

Run this code
medelev <- median(elev(dkmodel$cusp))
basins <- dkcrop(dkmodel$cusp, which(elev(dkmodel$cusp) < medelev))
cusps <- dkcrop(dkmodel$cusp, which(elev(dkmodel$cusp) > medelev))

rrate(dkmodel$cusp, basins)
rrate(dkmodel$cusp, cusps)

Run the code above in your browser using DataLab