as.q_matrix acts as an aliases.

as_q_matrix(x, ...)

# S3 method for class 'data.frame'
as_q_matrix(x, ...)

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

# Default S3 method
as_q_matrix(x, ...)

Arguments

x

Either a data.frame or matrix.

...

Not used

Value

A q_matrix object.`

See also

Examples

# Q matrix values
x = matrix(c(1, 0, 0, 1), nrow = 2)

# Construct class
q_mat = as_q_matrix(x)