as.matrix.bm_bitmap {bittermelon} | R Documentation |
as.matrix.bm_bitmap()
coerces bm_bitmap()
objects to an integer matrix.
## S3 method for class 'bm_bitmap'
as.matrix(x, ...)
x |
A |
... |
Further arguments passed to or from other methods. |
An integer matrix
space_matrix <- matrix(0L, ncol = 8L, nrow = 8L)
space_glyph <- bm_bitmap(space_matrix)
print(space_glyph, px = ".")
print(as.matrix(space_glyph))