matrix2: Fast, dangerous matrix generation.

Description Usage Arguments Details Value

View source: R/utils.R

Description

A fast, simple version of matrix.

Usage

1

Arguments

data

A data vector.

nrow

The desired number of rows

ncol

The desired number of columns

Details

The matrix must be supplied by column (i.e. byrow = FALSE) and the matrix can not have any names (i.e. dimnames = NULL).

Note that no sanity checks are performed on the input.

Value

A matrix of dimension nrow by ncol, containing data data.


rjbgoudie/structmcmc documentation built on Nov. 3, 2020, 3:41 a.m.