Use the site variable to classify a forest management data.
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 3, a additional column will be created with levels Lower, Middle and Upper, referencing the 3 categories. If not, only numbers will be used to differentiate the categories. Default: 3.
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 NA.
Returns
A data frame classified based on the site index.
Examples
library(forestmangr)data("exfm17")head(exfm17)# Classify data into 3 classes:ex_class <- classify_site(exfm17,"S",3,"plot")head(ex_class ,15)
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.