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, LogMap-validity, 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)


mojaveazure/seurat-object documentation built on Nov. 22, 2024, 11:36 p.m.