Skip to contents

Generic method to convert various objects to R lists

Usage

as_list(x, ...)

Arguments

x

An object to convert

...

Additional arguments for specific methods

Value

A named R list

Author

EDG

Examples

decay_time <- field("decay_time", "Time from peak amplitude to sustain level", type = "number")
as_list(decay_time)
#> $type
#> [1] "number"
#> 
#> $description
#> [1] "Time from peak amplitude to sustain level"
#>