Learn R Programming

vegdata (version 0.9.1)

tv.write: 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, db, name, db.abs.path, dict, cover = c("code", "perc"), 
overwrite = FALSE, iconv="CP437", newTvAdmin = FALSE, drop = FALSE, ...)

Arguments

x

Either observations data.frame with RELEVE_NR, TaxonUsageID and COVER_CODE columns or vegetation matrix of class "veg".

site

Header data for plots.

db

name of original Turboveg database folder

name

Name of the new database.

db.abs.path

absolute path to sourve database folder can be given instead of db. Then also dictionary name has to be given

dict

Turboveg dictionary name

cover

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

overwrite

Logical. Should an existing database be overwritten.

iconv

specify locale if necessary

newTvAdmin

Build new TvAdmin.dbf? If FALSE the file from original database will be used.

drop

Drop all columns which are empty or have only NA values. Otherwise all fields from dbasedict.dbf will be complemented.

Additional arguments.

Value

A dataframe of species occurences is written in dbase format into the Data directory of the specified Turboveg installation. Accordingly the header data information (tvhabita.dbf) is written to this directory and an empty file remarks.dbf is copied from the sample dataset.

Details

By default Covercode is written to Turboveg. This is only meaningful, if correct CoverScales are given in the site dataframe. The db database name is important to care for TvAdmin.dbf and remarks.dbf and the binary configuration file tvwin.set.

See Also

tv.veg