ChangeMatrix | R Documentation |
Produces a matrix which indicates the change in some measure of plant abundance between two time periods
ChangeMatrix(
object,
group,
years1,
years2,
plots = NA,
type = "active",
species = NA,
values = "count",
output = "dataframe",
...
)
object |
either an object of class |
years1 |
A numeric vector indicating the first set of years to be included. |
years2 |
A numeric vector indicating the second set of years to be included. |
plots |
A character vector of plot names. Defaults to |
type |
Passed to
|
species |
A character vector of names. Defaults to |
values |
Determines the data contained in the Site X Species matrix. Possible values are:
|
output |
Either "dataframe" or "list". Determines the output type When |
... |
Other arguments passed on to |
groups |
A required character string indicating which group of plants should be selected. Options are: "trees", "saplings", "seedlings","shrubs", "shseedlings" (indicates shrub seedlings), "vines" or "herbs'. |
This function will first call SiteXSpec
to create site by species matrices for each of the two time periods. The output matrix will then be created by subtracting the values from time 1 from the values from time 2. While it is generally assumed that the two time periods do not overlap and that years2
are later than years1
, this is not enforced and the user can enter any sets of years they like.
Additional arguments accepted by SiteXSpec
or getPlants
can be used as well. Currently using the cycles
argument will result in errors.
Note that species
can be a vector of common or Latin names. If common names are used then common=TRUE
must be included in the function call.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.