Learn R Programming

vegtable (version 0.1.3)

tv2coverconvert: Importing conversion tables from ‘Turboveg’ databases.

Description

This function reads the content of cover conversion tables stored in ‘Turboveg’ and attempts to reformat them in a more comprehensive structure.

Usage

tv2coverconvert(file, as.is=TRUE)

Arguments

file

A connection to a DBF file containing conversion table in ‘Turboveg’.

as.is

A logical value passed to read.dbf

Value

A '>coverconvert object.

Details

This function is used by tv2vegtable to import the respective conversion table from ‘Turboveg’ databases. Note that conversion tables in ‘Turboveg’ have only stored the middle point for each cover class in a scale, thus it will be recommended to rebuild the 'coverconvert' slot or use braun_blanquet.

See Also

tv2vegtable, read.dbf.

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", "popup", "Swea")
Table <- tv2coverconvert(file.path(TV_Home, "tvscale.dbf"))

## First scale have to be deleted from conversion table
Table@value <- Table@value[-1]
Table@conversion <- Table@conversion[-1]
summary(Table)

## Compare the 'Turboveg' version with a vegtable version
data(braun_blanquet)
summary(Table$br_bl)
summary(braun_blanquet$br_bl)
# }

Run the code above in your browser using DataLab