as.matrix.LogMap {SeuratObject} | R 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 |
... |
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)
[Package SeuratObject version 5.0.2 Index]