ideal: A forest spatial structure index characterizing distribution...

View source: R/ideal.R

idealR Documentation

A forest spatial structure index characterizing distribution of ideal state for tree attributies.

Description

Analyze the distribution of ideal state for tree attributies in a neighborhood unit according to the characteristics of the tree attributies,such as tree health,climax species distribution,etc.in spatial micro-environment.which clearly define the ideal degree of tree attributies for a reference tree and its four nearest neighbors.

Usage

ideal(x, para)

Arguments

x

A vector composed by 5 tree attributies.

para

Ideal state of tree attributies.

Value

Result will retrun five values,0,0.25,0.5,0.75,1,which means none,one, two, three or four ideal tree attributies of nearest neighbors for reference tree,respectively.

Author(s)

Zongzheng Chai, chaizz@126.com

References

None

Examples

health1<-c("poor","poor","poor","poor")
health2<-c("poor","poor","poor","excellent")
health3<-c("poor","poor","good","excellent")
health4<-c("poor","excellent","good","excellent")
health5<-c("good","excellent","good","excellent")

ideal1<-ideal(health1,para=c("good","excellent"))
ideal1
ideal2<-ideal(health2,para=c("good","excellent"))
ideal2
ideal3<-ideal(health3,para=c("good","excellent"))
ideal3
ideal4<-ideal(health4,para=c("good","excellent"))
ideal4
ideal5<-ideal(health5,para=c("good","excellent"))
ideal5

Zongzheng/forestSAS documentation built on July 13, 2024, 8:12 p.m.