as.matrix.bm_bitmap {bittermelon} | R Documentation |
Coerce bitmap objects to matrix
Description
as.matrix.bm_bitmap()
coerces bm_bitmap()
objects to an integer matrix.
Usage
## S3 method for class 'bm_bitmap'
as.matrix(x, ...)
Arguments
x |
A |
... |
Further arguments passed to or from other methods. |
Value
An integer matrix
Examples
space_matrix <- matrix(0L, ncol = 8L, nrow = 8L)
space_glyph <- bm_bitmap(space_matrix)
print(space_glyph, px = ".")
print(as.matrix(space_glyph))
[Package bittermelon version 1.1.2 Index]