Learn R Programming

vegtable (version 0.1.3)

tv2vegtable: Import vegetation data from a ‘Turboveg’ databases.

Description

tv2vegtable imports vegetation data sets from ‘Turboveg’ data bases.

Usage

tv2vegtable(db, tv_home=tv.home(), skip_empty_relations=TRUE, skip_scale,
	clean=TRUE)

Arguments

db

Name of ‘Turboveg’ data base as character value.

tv_home

‘Turboveg’ installation path as character value.

skip_empty_relations

Logical value indicating whether empty relations may be excluded from imported database or not.

skip_scale

Character value indicating scales to be excluded in slot 'coverconvert'.

clean

Logical value indicating whether output object should be cleaned or not.

Value

A '>vegtable object.

Details

Import function for ‘Turboveg’ databases into an object of class '>vegtable. Most of the contents of ‘Turboveg’ databases are included in DBF files and therefore imported by the function read.dbf. The automatic setting of database path will be done by the function tv.home but it can be customised by the argument 'tv_home'.

The species list will be imported by using the function tv2taxlist and therefore formatted as a '>taxlist object. Similarly, conversion tables will be handled as '>coverconvert objects.

Empty columns in the header will be deleted in the imported object.

See Also

tv2taxlist, tv2coverconvert, tv.home.

Examples

Run this code
# NOT RUN {
library(vegtable)

## Installed 'Turboveg' version of 'Fujiwara et al. (2014)'
TV_Home <- file.path(path.package("vegtable"), "tv_data")
Veg <- tv2vegtable("Fujiwara_2014", TV_Home)
summary(Veg)
# }

Run the code above in your browser using DataLab