Learn R Programming

SeuratObject (version 5.0.2)

as.matrix.LogMap: Coerce Logical Maps to Matrices

Description

Coerce a logical map to a matrix; this removes all logical map class capabilities from the object and returns a base-R matrix object

Usage

# S3 method for LogMap
as.matrix(x, ...)

Value

A base-R matrix created from x

Arguments

x

A LogMap object

...

Ignored

See Also

Logical map objects, validity, and interaction methods: LogMap, LogMap-validity, droplevels.LogMap(), intersect.LogMap(), labels.LogMap()

Examples

Run this code
map <- LogMap(letters[1:10])
map[['obs']] <- c(1, 3, 7)
mat <- as.matrix(map)
mat
class(mat)

Run the code above in your browser using DataLab