classify_site {forestmangr} | R Documentation |
Classify inventory data based on site index
Description
Use the site variable to classify a forest management data.
Usage
classify_site(df, site, nc = 3, plot, .groups = NA)
Arguments
df |
A data frame. |
site |
Quoted name for the site variable. |
nc |
number of categories used to classify the data. If |
plot |
Quoted name for the plot variable. |
.groups |
Optional argument. Quoted name(s) of grouping variables used to fit multiple regressions, one for each level of the provided variable(s). Default |
Value
A data frame classified based on the site index.
Author(s)
Sollano Rabelo Braga sollanorb@gmail.com
See Also
other sampling functions:
fit_clutter
for fitting Clutter's Growth and Yield, and
est_clutter
for estimating Clutter's Growth and Yield model variables.
Examples
library(forestmangr)
data("exfm17")
head(exfm17)
# Classify data into 3 classes:
ex_class <- classify_site(exfm17, "S", 3, "plot")
head(ex_class ,15)