getEvents | R Documentation |
This function gets the contents of the "Events" slot of an NPSForVeg object.
getEvents(
object,
plots = NA,
years = NA,
cycles = NA,
plot.type = "all",
output = "dataframe"
)
object |
Either an NPSForVeg object of a list of such objects. |
plots |
A character vector containing one or more plot names. Defaults to NA. If not NA then only events from the given plots will be returned. |
years |
A numeric vector containing one or more years. Defaults to NA. If not NA then only events from the given years will be returned. |
cycles |
A numeric vector containing one or more sampling cycles. Defaults to NA. If not NA then only events from the given sampling cycles will be returned. |
plot.type |
Passed on to
|
output |
Used type when |
This function returns the Events
slot of an NPSForVeg object or a list of such objects. This can be filtered by
specifying plots
, years
, or plot.type
. If object
is a single NPSForVeg object than a data.frame is returned.
If object
is a list and output
is "dataframe" then a single data.frame with data from all NPSForVeg objects in the list
is returned. If object
is a list and output
is "list" then a list will be returned. Each element of the list will be a
data.frame
with the Events
slot of one of the NPSForVeg
objects.
The contents of an "Events" slot from one or more NPSForVeg objects either as a data.frame or a list. The output can be filtered by using the "plots", "years" or "plot.type" arguements.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.