vecToMat: vecToMat

Description Usage Arguments Author(s)

View source: R/RcppExports.R

Description

This function takes a vector and reformats it to a matrix in a column-wise fashion. Since Armadillo "builds" the matrix column-wise, some code tricks are employed to automagically deliever the expected result.

Usage

1
vecToMat(vec, nr, nc)

Arguments

vec

Numeric; the vector to reformat.

nr

integer; length 1 integer indicating the number of matrix rows.

nc

integer; length 1 integer indicating the number of matrix columns.

Author(s)

Jason T. Serviss


jasonserviss/CIMseq documentation built on Jan. 11, 2020, 4:42 a.m.