| getPlants | R Documentation | 
Retrieves plant data from an NPSForVeg object.
getPlants(
  object,
  group,
  status = "alive",
  species = NA,
  cycles = NA,
  years = NA,
  plots = NA,
  tag = NA,
  crown = NA,
  stems = NA,
  size.min = NA,
  size.max = NA,
  BA.min = NA,
  BA.max = NA,
  host.tree = NA,
  in.crown = FALSE,
  decay = NA,
  common = FALSE,
  output = "dataframe"
)
| object | Either an object of class  | 
| group | A required character string indicating which group of plants should be selected. Options are: "trees", "saplings", "seedlings", "shrubs" "shseedlings"(indicates shrub seedlings), "vines", "herbs", or "cwd'. | 
| status | A required character string indicating if user wants data from living or dead plants. Used only for trees, saplings and shrubs. Values of this argument are matched to the  
 | 
| species | Defaults to  | 
| cycles | Defaults to  | 
| years | Defaults to  | 
| plots | Defaults to  | 
| tag | Defaults to  | 
| crown | Defaults to  | 
| stems | Defaults to  | 
| size.min | Defaults to  | 
| size.max | Defaults to  | 
| BA.min | Defaults to  | 
| BA.max | Defaults to  | 
| host.tree | Defaults to  | 
| in.crown | Defaults to  | 
| decay | Defaults to  | 
| common | Defaults to  | 
| output | Either "dataframe" or "list". Determines the output type When  | 
This function extracts data on plants from an NPSForVeg object. This function is called by other analysis and graphing functions. getPlants has a variety of arguments that narrow the response down to plants that match criteria such as Latin name, size, crown class etc.
getPlants
## Not run: 
netn <- importNETN("C:/NETN/R_Dev/data/NPSForVeg/NETN")
acad_plots <- getPlotNames(netn, parks = "ACAD")
acad_trees <- getPlants(netn, group = "trees", status = "alive") |>
  dplyr::filter(Plot_Name %in% acad_trees)
canopy_trees <- getPlants(netn, group = "trees",
  crown = c("Dominant", "Co-dominant", "Intermediate"))
MABI_saplings <- getPlants(netn, group = "saplings",
  status = "alive", years = 2021:2024) |> dplyr::filter(Unit_Code == "MABI")
MORR_exotic_herbs <- getPlants(netn, group = "herbs") |>
  dplyr::filter(Exotic == TRUE) |>
  dplyr::filter(Unit_Code == "MORR")
cwd <- getPlants(netn, group = "cwd", years = 2021:2024)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.