getArea | R Documentation |
Retrieves the number and area of various plot sizes from an object of class NPSForVeg.
getArea(object, group, type = "all")
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
|
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.
## Not run:
netn <- importNETN("C:/NETN/R_Dev/data/NPSForVeg/NETN")
# single microplot area
sap_area <- getArea(netn, group = "saplings", type = "single")
# full sapling area sampled
sap_area <- getArea(netn, group = "saplings", type = "all")
# Num. sapling plots
sap_count <- getArea(netn, group = "saplings", type = 'count')
# area for seedlings
seed_area <- getArea(netn, group = "seedlings", type = 'all')
# Tree plot area per park
park_plot_area <- cbind(area = getArea(netn, group = "trees"),
parks = getNames(netn, name.class = 'code'))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.