add_releves {vegtable} | R Documentation |
Merge relevés from data frames into vegtable objects
Description
Addition of plot observations into existing data sets may implicate merging data frames with vegtable objects.
Since this function will only update slots samples and header, consistency with slots layers, relations and species have to be checked and accordingly updated in advance.
Usage
add_releves(vegtable, releves, ...)
## S4 method for signature 'vegtable,data.frame'
add_releves(
vegtable,
releves,
header,
abundance,
split_string,
usage_ids = FALSE,
layers = FALSE,
layers_var,
format = "crosstable",
preserve_ids = FALSE,
...
)
add_releves(vegtable, ...) <- value
## S4 replacement method for signature 'vegtable,data.frame'
add_releves(vegtable, ...) <- value
Arguments
vegtable |
An object of class vegtable. |
releves |
A data frame including plot observations to be added into
|
... |
Further arguments passed to function |
header |
A data frame (optional) including header information for plots. |
abundance |
A character value (or vector of length 2) indicating the
names of abundance variable in |
split_string |
Character value used to split mixed abundance codes. |
usage_ids |
Logical value indicating whether species are as taxon usage
ids (integers) or names in |
layers |
Logical value indicating whether layers are included in
|
layers_var |
Name of the layer variable in |
format |
Character value indicating input format of |
preserve_ids |
A logical value, whether IDs in input data set should
used as |
value |
A data frame containing new plot observations. I is passed to parameter 'releves' by the replace method. |
Author(s)
Miguel Alvarez kamapu78@gmail.com