times: Print a multiplication symbol

Description Usage Arguments Value Examples

Description

Print a multiplication symbol

Usage

1
2
times(multiplier = "", multiplicand = "", format = NA,
  contract = F)

Arguments

multiplier

Character. If the multiplication symbol separates two strings, the first one.

multiplicand

Character. If the multiplication symbol separates two strings, the second one.

format

Function. If provided, formats multiplier and multiplicand.

contract

Logical. Remove spaces?

Value

Character. The multiplier and multiplicand (if provided), formatted if necessary, separated by a multiplication symbol (UTF-8).

times is a wrapper for glue, so you can use curly bracket notation in multiplier and multiplicand, just like with glue.

Examples

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

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