make_count_text: Build count text

View source: R/count_labels.R

make_count_textR Documentation

Build count text

Description

Returns a text label describing filtered counts. The text is composed in the following way:

  • when countnow is not NULL: ⁠<label> (<countnow>/<countmax>)⁠

  • when countnow is NULL: ⁠<label> (<countmax>)⁠

Usage

make_count_text(label, countmax, countnow = NULL)

Arguments

label

(character(1)) Text displayed before counts.

countmax

(numeric(1)) Number of unfiltered counts.

countnow

(numeric(1)) Number of filtered counts.

Value

A character string.


teal.slice documentation built on May 29, 2024, 1:39 a.m.