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.
add_releves(vegtable, releves, ...)# S4 method for 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 method for vegtable,data.frame
add_releves(vegtable, ...) <- value
An object of class vegtable.
A data frame including plot observations to be added into
vegtable
.
Further arguments passed to function cross2db()
(i.e.
na_strings
).
A data frame (optional) including header information for plots.
A character value (or vector of length 2) indicating the
names of abundance variable in vegtable
.
Character value used to split mixed abundance codes.
Logical value indicating whether species are as taxon usage
ids (integers) or names in releves
.
Logical value indicating whether layers are included in
releves
or not.
Name of the layer variable in vegtable
.
Character value indicating input format of releves
(either
"crosstable"
or "databaselist"
).
A logical value, whether IDs in input data set should
used as ReleveID
or not. Those IDs have to be integers and if one
of those already exists in vegtable
, an error will be retrieved.
A data frame containing new plot observations. I is passed to parameter 'releves' by the replace method.
Miguel Alvarez kamapu78@gmail.com
cross2db()