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


TheoMichelot/hmmTMB documentation built on Feb. 17, 2025, 5:38 a.m.