Unique.ID: Unique Plot ID Code

View source: R/Unique.Id.R

Unique.IDR Documentation

Unique Plot ID Code

Description

When working with a large data set of multiple stands and plots, it can be helpful to provide each individual plot a unique ID code. As an example, this ensures that when using some functions like basal area of larger trees, you don't confused plot 2 in stands 1, 2, 3.

Usage

Unique.ID(Stand, Plot)

Arguments

Stand

The unique stand ID for each stand.

Plot

The unique plot ID for each plot within a stand.

Details

This is a required function for the BA.Larger.Trees and CCF.Larger functions. This may also be helpful in your own analysis to make sorting easier.

Value

This function returns a vector of length n with unique id numbers for every individual plot.

Author(s)

Ryan Smith

See Also

Other Plot Level Functions: BA.Larger.Trees(), BAPH(), CCF.Larger(), CrownCompF(), DBHFuns(), HeightPredict(), RD(), SDI.Max(), SDI.Plot(), TPH(), TallestTrees()

Examples

Stand <- c(1,1,1,1,1,1,2,2,2,2,2,2)
Plot  <- c(1,2,3,4,5,6,1,2,3,4,5,6)
Unique.ID(Stand, Plot)


ryanmismith/inventoryfunctions documentation built on Aug. 5, 2022, 2:22 a.m.