Learn R Programming

lorentz (version 1.1-2)

as.matrix.3vel: Coerce 3-vectors and 4-vectors to a matrix

Description

Coerce 3-vectors and 4-vectors to a matrix. A convenience wrapper for unclass()

Usage

# S3 method for 3vel
as.matrix(x, ...)
# S3 method for 4vel
as.matrix(x, ...)

Arguments

x

Object of class 3vel or 4vel

...

Further arguments (currently ignored)

Author

Robin K. S. Hankin

Examples

Run this code
as.matrix(r3vel(5))
as.matrix(r4vel(5))

Run the code above in your browser using DataLab