as.matrix.quantities: Coerce to a Matrix

View source: R/misc.R

as.matrix.quantitiesR Documentation

Coerce to a Matrix

Description

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

Usage

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

Arguments

x

an R object.

...

additional arguments to be passed to or from methods.

Examples

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


quantities documentation built on Sept. 11, 2024, 7:19 p.m.