Learn R Programming

quantities (version 0.2.2)

as.list.quantities: Coerce to a List

Description

S3 method for quantities objects (see as.list).

Usage

# S3 method for quantities
as.list(x, ...)

Arguments

x

object to be coerced or tested.

...

objects, possibly named.

Examples

Run this code
x <- set_quantities(1:3, m/s, 0.1)
as.list(x)

Run the code above in your browser using DataLab