as.matrix.LogMap: Coerce Logical Maps to Matrices

View source: R/logmap.R

as.matrix.LogMapR Documentation

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 class 'LogMap'
as.matrix(x, ...)

Arguments

x

A LogMap object

...

Ignored

Value

A base-R matrix created from x

See Also

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

Examples

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


SeuratObject documentation built on Nov. 18, 2023, 1:06 a.m.