Learn R Programming

quantities (version 0.2.2)

as.matrix.quantities: Coerce to a Matrix

Description

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

Usage

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

Arguments

x

an R object.

...

additional arguments to be passed to or from methods.

Examples

Run this code
as.matrix(set_quantities(1:3, m/s, 0.1))

Run the code above in your browser using DataLab