as_sparse: Transforms matrix to dgTMatrix

View source: R/utility.R

as_sparseR Documentation

Transforms matrix to dgTMatrix

Description

Transforms matrix to dgTMatrix

Usage

as_sparse(x)

Arguments

x

Matrix or vector. If this is a vector, it is formatted into a single-column matrix.

Value

Sparse matrix of class dgTMatrix


hmmTMB documentation built on Oct. 25, 2023, 1:07 a.m.