Learn R Programming

vegtable (version 0.1.8)

as: Coerce objects to lists

Description

Coerce vegtable objects to a list with every slot as a component of the list. This way allows to explore content and solve problems when validity checks fail.

Coercion is applied for different classes by vegtable.

Usage

# S4 method for vegtable
as.list(x, ...)

# S4 method for coverconvert as.list(x, ...)

Value

An object of class list.

Arguments

x

An object to be coerced.

...

further arguments passed from or to other methods.

Author

Miguel Alvarez kamapu78@gmail.com

Examples

Run this code
## vegtable as list
veg <- as(Kenya_veg, "list")
names(veg)

## coverconvert as list
as(Kenya_veg@coverconvert, "list")

Run the code above in your browser using DataLab