View source: R/generate_stand_from_trees.R
generate_stand_from_trees | R Documentation |
This function simulates stem maps for stands, basing density and attributes
on tree measurements provided to data
.
generate_stand_from_trees(
data,
stand_area,
...,
measured_area,
cols = dplyr::everything()
)
data |
The data.frame |
stand_area |
sf object: The polygon to simulate trees within. Sampling
is perfomed using |
... |
Passed to |
measured_area |
Either numeric (the total amount of area represented by
|
cols |
Names of columns to simulate for each new tree |
An sf object, representing new tree positions in the stem map, with simulated variables.
stand_area <- sf::st_bbox(c(xmin = 0, ymin = 0, xmax = 140, ymax = 140))
stand_area <- sf::st_as_sfc(stand_area)
measured_area <- 19600
trees <- tree_positions[c("SPECIES", "DBH85")]
trees$SPECIES <- factor(trees$SPECIES)
generate_stand_from_trees(
trees,
stand_area,
measured_area = measured_area
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.