as.matrix.3vel {lorentz}R Documentation

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 class '3vel'
as.matrix(x, ...)
## S3 method for class '4vel'
as.matrix(x, ...)

Arguments

x

Object of class 3vel or 4vel

...

Further arguments (currently ignored)

Author(s)

Robin K. S. Hankin

Examples

as.matrix(r3vel(5))
as.matrix(r4vel(5))

[Package lorentz version 1.1-1 Index]