df2coverconvert: Create coverconvert objects

View source: R/df2coverconvert.R

df2coverconvertR Documentation

Create coverconvert objects

Description

The class coverconvert contains tables for transforming cover values to percentage using the function cover_trans(). These objects can be created from conversion tables imported as data frames.

Usage

df2coverconvert(x, ...)

## S3 method for class 'list'
df2coverconvert(x, ...)

## S3 method for class 'data.frame'
df2coverconvert(x, name, ...)

Arguments

x

Either a data frame or a list of data frames containing the conversion table. Three columns are mandatory in such data frames, namely value (factor with the symbols for each class in the cover scale, sorted from the lowest to the highest value), bottom (numeric value with the bottom values of each class), and top (numeric value with the top values of each class). The values bottom and top are usually as cover percentage but they may refer to any other numeric abundance.

...

Further arguments passed among methods.

name

A character value used as name of the cover scale in the data frame method. In the list method, this name will be extracted from the names of the elements in the list.

Author(s)

Miguel Alvarez kamapu78@gmail.com

Examples

## Convert object into list
cov <- as(Kenya_veg@coverconvert, "list")

## Convert back to coverconvert
cov <- df2coverconvert(cov)


vegtable documentation built on March 31, 2023, 10:33 p.m.