getPlots | R Documentation |
Returns the contents of the Plots
slot of an NPSForVeg object. The returned data can be filtered to meet various criteria.
getPlots(
object,
type = "active",
visits = NA,
years = NA,
cycles = NA,
plots = NA,
parks = NA,
subparks = NA,
events = NA,
output = "dataframe"
)
object |
An |
type |
One of three options indicating the type of plots to be considered. Must be in quotes. Options are:
|
visits |
A numeric vector. Returns only data from plots where the number of plot visits matches one of the values in |
years |
A numeric vector. Returns only plot data from plots where the years the plot was visited matches one of the values in |
cycles |
A numeric vector. Returns only plot data from plots where the cycle the plot was visited matches one of the values in |
parks |
A character vector. Returns only data from plots where the park the plot is in matches one of the values in |
subparks |
A character vector. Returns only data from plots where the sub-park the plot is in matches one of the values in |
events |
A |
output |
Either "dataframe" (the default) or "list". Note that this must be in quotes. Determines the type of output from the function. Only used when the input |
This function returns plot data either from a single NPSForVeg object or a list of such objects. The default output is a data.frame. However, if object
is a list and output
is "list" then a list of data.frames will be returned.
## Not run:
netn <- importNETN("C:/NETN/R_Dev/data/NPSForVeg/NETN")
acad_mdiE <- getPlots(netn, subparks = "ACAD_MDI_East")
SARA22 <- getPlots(netn, years = 2022, parks = "SARA")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.