Learn R Programming

vegtable (version 0.1.3)

add_releves: Merge relev<U+00E9>s from data frames into vegtable objects.

Description

Addition of plot observations into existing data sets may implicate merging data frames with '>vegtable objects.

Usage

# S4 method for vegtable,data.frame
add_releves(vegtable, releves, header,
	abundance, split_string, usage_ids=FALSE, layers=FALSE, layers_var,
	format="crosstable", ...)

Arguments

vegtable

An object of class '>vegtable.

releves

A data frame including plot observations to be added into 'vegtable'.

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 'vegtable'.

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 'releves'.

layers

Logical value indicating whether layers are included in 'releves' or not.

layers_var

Name of the layer variable in 'vegtable'.

format

Character value indicating input format of 'releves' (whether 'crosstable' or 'databaselist').

...

Further arguments passed to function cross2db (i.e. 'na_strings').

Details

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.

See Also

cross2db.

Examples

Run this code
# NOT RUN {
## No example at the moment
# }

Run the code above in your browser using DataLab