Description Usage Arguments Details Value
View source: R/response_designs.R
The k
trees closest to a sample location are selected into the sample
1 | k_tree(tree_pop, sample_loc, k = 6)
|
tree_pop |
A tree population object ( |
sample_loc |
A sample location object ( |
k |
Number of nearets neighbors. |
The RANN package is used to find the k
trees clostest to the
respective sample locations in sample_loc
. The RANN package is a
wrapper for the Approximate Near Neighbor (ANN) C++ library allowing for
fast nearest-neighbor searches using kd-trees.
An object of class response
with indices of trees in
tree_pop
that are selected at the individual sample locations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.