powered by
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 LogMap as.matrix(x, ...)
A base-R matrix created from x
x
A LogMap object
LogMap
Ignored
Logical map objects, validity, and interaction methods: LogMap, LogMap-validity, droplevels.LogMap(), intersect.LogMap(), labels.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)
Run the code above in your browser using DataLab