as {taxlist}R Documentation

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)

Arguments

x

An object of class taxlist or any S4 class.

Details

Coerce taxlist objects to lists.

Value

An object of class list.

Author(s)

Miguel Alvarez kamapu78@gmail.com

Examples

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

[Package taxlist version 0.3.0 Index]