sp.classification: Species classifcation

sp.classificationR Documentation

Species classifcation

Description

Classifies the tree species into four species groups

Usage

sp.classification(tree.sp, species.spruce, species.pine, species.harw)

Arguments

tree.sp

Tree species code.

species.spruce

A vector with the codes used to define 'spruce' group .

species.pine

A vector with the codes used to define 'pine' group .

species.harw

A vector with the codes used to define the 'birch' group .

Value

Returns a vector with the classification of tree.sp into one of these four groups: spruce, pine, birch, and other. spruce group is defined by species.spruce, pine group is defined by species.pine, and birch is defined by species.harw. If a species does not fall within any of these three groups is classified as 'other'.

Author(s)

Clara Anton Fernandez caf@nibio.no

Examples

sp.classification(tr$tree.sp, species.spruce = c(1,15),
                           species.pine = c(2,34),
                           species.harw = c(3,4))

sitree documentation built on April 28, 2022, 5:06 p.m.