Learn R Programming

bittermelon (version 2.2.1)

is_bm_pixmap: 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)

Value

TRUE or FALSE

Arguments

x

An object

See Also

bm_pixmap(), as_bm_pixmap()

Examples

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

Run the code above in your browser using DataLab