is_bm_pixmap: Test if the object is a pixmap object

View source: R/is_bm_matrix.R

is_bm_pixmapR Documentation

Test if the object is a pixmap object

Description

is_bm_pixmap() returns TRUE for bm_pixmap objects (or subclasses) and FALSE for all other objects.

Usage

is_bm_pixmap(x)

Arguments

x

An object

Value

TRUE or FALSE

See Also

bm_pixmap(), as_bm_pixmap()

Examples

pm <- bm_pixmap(matrix(c("red", "blue", "green", "black"),
                nrow = 2L, byrow = TRUE))
is_bm_pixmap(pm)

bittermelon documentation built on June 25, 2024, 5:09 p.m.