asmat: Coerces non-'sparseMatrix' objects as 'matrix'

View source: R/misc.R

asmatR Documentation

Coerces non-sparseMatrix objects as matrix

Description

This function coerse non-sparseMatrix objects as matrix and keeps sparseMatrix unchanged.

Usage

asmat(obj)

Arguments

obj

The object under consideration.

Value

Returns a matrix or a sparseMatrix.


conroylau/lpinfer documentation built on Oct. 23, 2022, 9:21 a.m.