ID EN
Miscellaneous

mat.or.vec

R Base 3.6.2

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.

Syntax

R
mat.or.vec(nr, nc)

Arguments

Parameter Description
nr, nc numbers of rows and columns.

Examples

Example
R
# NOT RUN {
mat.or.vec(3, 1)
mat.or.vec(3, 2)
# }