getTreesBB {ssExtra}R Documentation

Extract the Tree Population from a "sampSurf" object

Description

This is a utility routine that will extract the tree population from an object of class “sampSurf”. It will return the population in two different formats as noted below.

Usage

getTreesBB(ssObj, ...)

Arguments

ssObj

An object of class "sampSurf".

...

Gobbled currently.

Details

This routine will return all of the necessary individual tree attributes for recreating the population as a "standingTrees" object, including the spatial locations for the trees. Of course, that is not necessary, since the “standingTrees” object is included in the return. However, in addition to the usual information for such an object, the data frame returned also includes individual tree VBARs, which makes it useful for big BAF sampling.

Recall that the tree population is independent of the estimate attribute for the sampling surface. Therefore, any “sampSurf” object can be passed to extract the population of trees (see, e.g., the example below).

Value

A list invisibly with...

trees

A data frame containing the full tree population.

strees

An object of class "standingTrees" corresponding to the trees data frame.

nTrees

The number of trees in both trees and strees.

Author(s)

Jeffrey H. Gove

See Also

standingTrees-methods, sampleTrees

Examples

#
# if ssBB is a "ssBigBAF" object, then, simply...
#
## Not run: 
tp.vol = getTreesBB(ssBB@ss.bb.vol) #from volume
tp.ba = getTreesBB(ssBB@ss.bb.ba)   #from basal area
identical(tp.vol, tp.ba)  #identical

## End(Not run) 

[Package ssExtra version 0.1-2 Index]