Learn R Programming

taxlist (version 0.3.0)

as: Coerce taxlist objects to lists.

Description

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

Usage

S4_to_list(x)

Value

An object of class list.

Arguments

x

An object of class taxlist or any S4 class.

Author

Miguel Alvarez kamapu78@gmail.com

Details

Coerce taxlist objects to lists.

Examples

Run this code
## Coerce taxlist to list
tax_list <- as(Easplist, "list")

## Coerce data frame to taxlist
Cyperus <- read.csv(file = file.path(path.package("taxlist"), "cyperus",
        "names.csv"))
Cyperus$AcceptedName <- !Cyperus$SYNONYM
head(Cyperus)

as(Cyperus, "taxlist")

Run the code above in your browser using DataLab