matrix2: Converts a vector to a matrix, or does nothing if the input...

Description Usage Arguments Value Examples

Description

Converts a vector to a matrix, or does nothing if the input is a matrix.

Usage

1
matrix2(mat)

Arguments

mat

Vector or matrix.

Value

Matrix.

Examples

1
2
matrix2(rnorm(10));
matrix2(matrix(rnorm(10,2),ncol=2));

ericstrobl/RCIT documentation built on June 5, 2019, 9:07 a.m.