Skip to contents

Coerce to list

Usage

coerceToList(object, ...)

# S4 method for Annotated
coerceToList(object)

Arguments

object

Object.

...

Additional arguments.

Value

list.

Note

Don't attempt to defined methods for as.list().

Updated 2021-10-14.

See also

Refer to the S4Vectors package for details.

Examples

data(DataFrame, package = "AcidTest")

## Annotated ====
object <- DataFrame
is(object, "Annotated")
#> [1] TRUE
object <- coerceToList(object)
class(object)
#> [1] "list"
names(object)
#> [1] "rownames"        "nrows"           "elementType"     "elementMetadata"
#> [5] "metadata"        "listData"