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 Dec. 13, 2024, 11:52 a.m.