Learn R Programming

biometrics (version 1.0.1)

gtree: Computes basal area of any given tree

Description

Computes basal area of any given tree. Actually provides the area for a given circle of radius x.

Usage

gtree(x, in.m2)

Value

The value of basal area.

Arguments

x

is the vector having tree diameter, in cm

in.m2

is an indicator variable: 1 to obtain the result in m2 if x was measured in cm; and 0 to obtain the resulting area in the same units of x.

Author

Christian Salas-Eljatib

Details

No details are given

Examples

Run this code

#Creating an example dataframe
dbh<- round(rnorm(4,25,20),1);
#Using the function
in.m2=1
gtree(dbh,in.m2)

Run the code above in your browser using DataLab