Learn R Programming

SeuratObject (version 5.0.2)

EmptyMatrix: Empty Matrices

Description

Create empty 0x0 matrices of varying types

Usage

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

Value

A 0x0 matrix of the specified representation and type

Arguments

repr

Representation of empty matrix; choose from:

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

See Also

IsMatrixEmpty()

Examples

Run this code
EmptyMatrix()
EmptyMatrix("spam")

Run the code above in your browser using DataLab