obelus: Print an obelus

Description Usage Arguments Value Examples

View source: R/symbols.R

Description

Print an obelus

Usage

1
obelus(numerator = "", denominator = "", format = NA, contract = F)

Arguments

numerator

Character. If the obelus separates two strings, the first one.

denominator

Character. If the obelus separates two strings, the second one.

format

Function. If provided, formats numerator and denominator.

contract

Logical. Remove spaces?

Value

Character. The numerator and denominator (if provided), formatted if necessary, separated by an obelus (UTF-8).

obelus is a wrapper for glue, so you can use curly bracket notation in numerator and denominator, just like with glue.

Examples

1
2
3
4
5
library(scales)
obelus()
obelus(1234, 5678)
obelus(1234, 5678, format = comma)
obelus(1234, 5678, format = comma, contract = TRUE)

BenjaminWolfe/typewritr documentation built on Nov. 23, 2019, 11:18 a.m.