View source: R/classify_site.R
classify_site | R Documentation |
Use the site variable to classify a forest management data.
classify_site(df, site, nc = 3, plot, .groups = NA)
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 |
A data frame classified based on the site index.
Sollano Rabelo Braga sollanorb@gmail.com
other sampling functions:
fit_clutter
for fitting Clutter's Growth and Yield, and
est_clutter
for estimating Clutter's Growth and Yield model variables.
library(forestmangr)
data("exfm17")
head(exfm17)
# Classify data into 3 classes:
ex_class <- classify_site(exfm17, "S", 3, "plot")
head(ex_class ,15)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.