classify_site: Classify inventory data based on site index

View source: R/classify_site.R

classify_siteR 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 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.

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)


forestmangr documentation built on Nov. 24, 2023, 1:07 a.m.