tv.write: Write species-plot observations and site information to...

View source: R/tv.write.R

tv.writeR Documentation

Write species-plot observations and site information to Turboveg database.

Description

Write species-plot observations and site information to Turboveg database.

Usage

tv.write(x, site, name, tvadmin, remarks, dict = "", cover = c("code", "perc"),
drop = FALSE, obl = TRUE, overwrite = FALSE, ...)

Arguments

x

(data.frame) Either observations data.frame with RELEVE_NR, TaxonUsageID and COVER_CODE (see tv.obs) columns or vegetation matrix of class "veg".

site

(character) Header data for plots.

name

(character) Name of the new database.

tvadmin

(data.frame) Dataframe with plot UUID's and Turboveg columns from TvAdmin.dbf. A new file with new unique identifiers will be created if omitted.

remarks

(data.frame) Remarks in Turboveg format if the comments for individual plots exceed 254 characters. See remarks.dbf in Turboveg databases. An empty file will be created if omitted.

dict

(character) Turboveg dictionary name

cover

(logical) Use of covercodes or (mean) cover percentages, see Details.

drop

(logical) Drop columns which are empty or contain only NA values.

obl

(logical) Add obligatory fields defined in the TV dictionary but not present in the site data table.

overwrite

(logical) Should an existing database be overwritten.

...

additional arguments

Details

By default Covercode is written to Turboveg. This is only meaningful, if correct CoverScales are given in the site dataframe. Unique plot ID's are stored in *TvAdmin.dbf*. If you want to preserve already given UUID's you have to prepare an appropriate data.frame. Look for existing *TvAdmin.dbf* files for necessary columns.

Value

Five files will be created in "tv_home/Data/databasename" directory. *tvabund.dbf* with occurrence information n long format, *tvhabita.dbf* with plot information, remarks.dbf with comments longer then 255 characters, *TvAdmin.dbf* with plot UUID's and tvwin.dbf with information about taxonomic reference list, and dictionary used.

Author(s)

Florian Jansen @email florian.jansen@uni-rostock.de

See Also

tv.veg


vegdata documentation built on May 29, 2024, 4:19 a.m.