getArea: getArea

getAreaR Documentation

getArea

Description

Retrieves the number and area of various plot sizes from an object of class NPSForVeg.

Usage

getArea(object, group, type = "all")

Arguments

object

Either an object of class NPSForVeg, or a list of objects of class NPSForVeg

group

Indicates which plant groups the area should correspond to, as different groups are monitored on different size plots. The name of the group should be enclosed in quotes. Acceptable values are" "trees", "saplings", "seedlings","shrubs", "shseedlings","vines", "herbs".

type

Indicates the type of area to be returned, and should be enclosed in quotes. Acceptable values are

"all"

(the default) Returns the total area sampled per plot for that group.

"single"

Returns the area of one of the subsamples (eg. microplot or quadrat).If there is only one sample of that group, such as trees sample over an entire plot, than "single" and "all" will produce identical results

"count"

A count of the number of the number of subplots/microplots/quadrats that the group is monitored in.

Value

For a single NPSForVeg object getArea returns a vector of length one. For a list of such object it returns a vector as long as the list.


NCRN/NPSForVeg documentation built on March 26, 2024, 7:13 a.m.