View source: R/metrics-tree-level.R
| silv_tree_dclass | R Documentation |
Classifies the measured diameters into classes of a specified length
silv_tree_dclass(
diameter,
dmin = 7.5,
dmax = NULL,
class_length = 5,
include_lowest = TRUE,
return_intervals = FALSE
)
diameter |
A numeric vector of diameters |
dmin |
The minimum inventory diameter in centimeters |
dmax |
The maximum inventory diameter in centimeters. Values that
are greater than |
class_length |
The length of the class in centimeters |
include_lowest |
Logical. If TRUE (the default), the intervals are
[dim1, dim2) |
return_intervals |
If FALSE, it returns the intervals. Otherwise (the default), it returns the class center |
A numeric vector
library(dplyr)
inventory_samples |>
mutate(dclass = silv_tree_dclass(diameter))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.