SiteXSpec | R Documentation |
Produces a Site X Species matrix. Each cell can contain a count, a measure of size or 1/0 indicating presence/abscence
SiteXSpec(
object,
group,
years = NA,
cycles = NA,
values = "count",
status = "alive",
area = "plot",
output = "dataframe",
species = NA,
plots = NA,
plot.type = "active",
Total = TRUE,
common = F,
...
)
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" (indicating shrub seedlings), "vines", "herbs" or "cwd". |
years |
Defaults to |
cycles |
Defaults to |
values |
Determines the data contained in the Site X Species matrix. Possible values are:
|
status |
A requried 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
|
area |
A character vector. Indicates if the values in the output are on a per plot or per area basis. This only works with counts, basal areas, and length of seedlings.
|
output |
Either "dataframe" or "list". Determines the output type when |
species |
A character vector of names. Defaults to |
plots |
A character vector of plot names. Defaults to |
plot.type |
Passed on to
|
Total |
Logical value. Determine if a "Total" column will be included in the output. Defaults to TRUE. |
common |
Defaults to |
... |
Other arguments passed on to |
This function will first call getPlants
to retrieve the plant data and getEvents
to retrieve the event data. Then a site X species matrix will be created.
Values in the cells are determined by the option selected with values
. Each row corresponds to a different plot and each column
to a different species.
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.