taxlist (version 0.1.7)

as.list: Coerce an S4 Object to a List

Description

Coercion of S4 objects to lists can be applied to explore their content, avoiding errors caused by their validation.

Usage

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

## Default function S4_to_list(x)

Arguments

x

An object of class '>taxlist or any S4 class.

...

further arguments passed to or from other methods.

Value

An object of class list.

Details

The function 'S4_to_list' transforms any S4 object to a list setting slots to elements of the list and it is running internally in the method 'as.list' for '>taxlist objects.

Examples

Run this code
# NOT RUN {
library(taxlist)
data(Easplist)
Easplist <- as.list(Easplist)
class(Easplist)
# }

Run the code above in your browser using DataLab