mat.or.vec: Create a Matrix or a Vector

Description Usage Arguments Examples

View source: R/utilities.R

Description

mat.or.vec creates an nr by nc zero matrix if nc is greater than 1, and a zero vector of length nr if nc equals 1.

Usage

1
mat.or.vec(nr, nc)

Arguments

nr, nc

numbers of rows and columns.

Examples

1
2
mat.or.vec(3, 1)
mat.or.vec(3, 2)

robertzk/monadicbase documentation built on May 27, 2019, 10:35 a.m.