EmptyMatrix: Empty Matrices

View source: R/utils.R

EmptyMatrixR Documentation

Empty Matrices

Description

Create empty 0x0 matrices of varying types

Usage

EmptyMatrix(repr = "C", type = "d")

Arguments

repr

Representation of empty matrix; choose from:

  • C” for a CsparseMatrix

  • T” for a TsparseMatrix

  • R” for an RsparseMatrix

  • e” for an unpackedMatrix

  • d” for a dense S3 matrix

  • spam” for a spam matrix

type

Type of resulting matrix to return, choose from:

  • d” for numeric matrices

  • l” for logical matrices

  • n” for pattern matrices

Note, when repr is “spam”, type must be “d”; when repr is “d”, setting type to “n” returns a logical matrix

Value

A 0x0 matrix of the specified representation and type

See Also

IsMatrixEmpty()

Examples

EmptyMatrix()
EmptyMatrix("spam")


SeuratObject documentation built on May 29, 2024, 12:31 p.m.