Summary.bm_list: max, min, and range for bitmap objects

View source: R/Summary.bm_list.R

Summary.bm_listR Documentation

max, min, and range for bitmap objects

Description

max(), min(), and range() will provide the maximum and minimum integer values found in the bm_bitmap(), bm_list(), or bm_list() objects. The other four S3 base::Summary methods - all(), any(), sum, and prod - are only supported for bm_bitmap() objects (which are subclasses of integer matrices).

Usage

## S3 method for class 'bm_list'
Summary(..., na.rm = FALSE)

Arguments

...

Passed to relevant functions.

na.rm

Passed to min() and max().

Value

An integer vector.

Examples

  font_file <- system.file("fonts/spleen/spleen-8x16.hex.gz", package = "bittermelon")
  font <- read_hex(font_file)
  min(font)
  max(font)
  range(font)

trevorld/bittermelon documentation built on Dec. 24, 2024, 10:33 p.m.