coerce-methods: Coerce objects to lists

asR 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")


kamapu/vegtables documentation built on Feb. 17, 2024, 8:29 a.m.