obelus.RdPrint an obelus
obelus(numerator = "", denominator = "", format = NA, contract = F)
| 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 |
| contract | Logical. Remove spaces? |
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.
#> [1] "÷"obelus(1234, 5678)#> 1234 ÷ 5678obelus(1234, 5678, format = comma)#> 1,234 ÷ 5,678obelus(1234, 5678, format = comma, contract = TRUE)#> 1,234÷5,678