as {vegtable} | R Documentation |
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 signature 'vegtable'
as.list(x, ...)
## S4 method for signature 'coverconvert'
as.list(x, ...)
Arguments
x |
An object to be coerced. |
... |
further arguments passed from or to other methods. |
Value
An object of class list
.
Author(s)
Miguel Alvarez kamapu78@gmail.com
Examples
## vegtable as list
veg <- as(Kenya_veg, "list")
names(veg)
## coverconvert as list
as(Kenya_veg@coverconvert, "list")
[Package vegtable version 0.1.8 Index]