Learn R Programming

vegdata (version 0.7)

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, cover = c("code", "perc"), overwrite = FALSE, 
iconv="WINDOWS-1250", newTvAdmin = 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.
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.
...
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 stored in the site dataframe. Database name is iportent to care for TvAdmin.dbf and remarks.dbf and configuration file tvwin.set.

See Also

tv.veg