M: Create a test Matrix

Description Usage Arguments Value Examples

View source: R/M.R

Description

Create a test Matrix to test in a package that does not officially use the Matrix package.

Usage

1
M(row.=1, col.=1)

Arguments

row., col.

Number of rows and columns in the matrix

Value

Matrix(1:(row.*col.), row., col.)

Examples

1
2
3
4
5
M. <- M()

# check

all.equal(M., Matrix(1))

tstPkg1 documentation built on May 2, 2019, 4:48 p.m.

Related to M in tstPkg1...