as.matrix.LogMap | R Documentation |
Coerce a logical map to a matrix; this removes all logical map class capabilities from the object and returns a base-R matrix object
## S3 method for class 'LogMap'
as.matrix(x, ...)
x |
A |
... |
Ignored |
A base-R matrix created from x
Logical map objects, validity, and interaction methods:
LogMap
,
LogMap-validity
,
droplevels.LogMap()
,
intersect.LogMap()
,
labels.LogMap()
map <- LogMap(letters[1:10])
map[['obs']] <- c(1, 3, 7)
mat <- as.matrix(map)
mat
class(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.