Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

classify_site

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")
exfm17

# Classify data into 3 classes:
ex_class <- classify_site(exfm17, "S", 3, "plot")
head(ex_class ,15)

forestmangr

Forest Mensuration and Management

v0.9.3
MIT + file LICENSE
Authors
Sollano Rabelo Braga [aut, cre, cph], Marcio Leles Romarco de Oliveira [aut], Eric Bastos Gorgens [aut]
Initial release
2021-01-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.