bm_bitmap {bittermelon}R Documentation

Bittermelon bitmap matrix object

Description

bm_bitmap() creates an S3 matrix subclass representing a bitmap.

Usage

bm_bitmap(x)

Arguments

x

Object to be converted to bm_bitmap(). If not already an integer matrix it will be cast to one by as_bm_bitmap().

Details

Value

An integer matrix with “bm_bitmap” and “bm_matrix” subclasses.

Supported S3 methods

See Also

as_bm_bitmap(), is_bm_bitmap()

Examples

 space <- bm_bitmap(matrix(0, nrow = 16, ncol = 16))
 print(space)

[Package bittermelon version 2.0.2 Index]