Learn R Programming

sampSurf (version 0.7-6)

taperInterpolate: Interpolate Diameters or Lengths in a "'>Stem" Object

Description

Taper information is stored in a data frame within the taper slot of a "'>downLog" or "'>standingTree" object. This function lets one interpolate diameters at given lengths/heights, or vice versa from the taper data. This is done using either the built-in taper function or splines, depending on the value of the solidType slot in the object. Please see the methods in taperInterpolate-methods for more details.

Usage

taperInterpolate(object, ...)

Arguments

object

See methods for the possibilites of this signature argument.

Just gobbled for now.

Value

A numeric vector with the interpolated diameters or lengths/heights.

Details

Please note that the routine will throw an error if the points you select for interpolation are not found in the stem.

If solidType = NULL then the user has supplied their own taper data, and splines are used for the interpolation. Otherwise, the built-in taper function is used since the taper data were generated from it.

See Also

"'>downLog", "'>standingTree", The Stem Class vignette.

Examples

Run this code
# NOT RUN {
dl = downLog(buttDiam=12, topDiam=2, logLen=10, units="English")
dl@taper
taperInterpolate(dl, pts=c(2.6, 4.1, 7.2))
# }

Run the code above in your browser using DataLab