as_sparse function

Transforms matrix to dgTMatrix

Transforms matrix to dgTMatrix

as_sparse(x)

Arguments

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

Returns

Sparse matrix of class dgTMatrix

Other functions in hmmTMB

Related functions from the same R package