propBar: Make text-based proportion bars in the console

View source: R/prop_bar.R

propBarR Documentation

Make text-based proportion bars in the console

Description

Generates a text-based proportion bar for downstream applications.

Usage

propBar(
  use,
  total,
  charUse = "#",
  charRem = " ",
  charLen = 25,
  charEnd = c("[", "]")
)

Arguments

use

Number of units used in total size.

total

Total number of units in total size.

charUse

Text character to display used portion of bar. Defaults to "#".

charRem

Text character to display unused portion of bar. Defaults to " ".

charLen

Total number of characters used for bar. Default is 25 units.

charEnd

"Fancy" end pieces if you want them. Must be supplied as a vector of character elements. Defaults to c("[", "]").


btmonier/monier documentation built on Sept. 13, 2024, 12:07 a.m.