Learn Data & AI Skills | 50% off
Get 50% off unlimited learning

vegdata (version 0.9.8)

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, name, tvadmin, remarks, dict = "", cover = c("code", "perc"), 
drop = FALSE, obl = TRUE, overwrite = 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.

name

Name of the new database.

tvadmin

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

remarks

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

Turboveg dictionary name

cover

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

drop

Drop columns which are empty or contain only NA values.

obl

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.

Value

Five files will be created in tv_home/Data/<name> 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.

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 adequate data.frame. Look into existing TvAdmin.dbf files for necessary columns.

See Also

tv.veg