pU: pU

Description Usage Arguments Value Examples

View source: R/scripts.R

Description

Pretty units, to create strings like "1 dog" but "2 dogs", where the singular or plural of the unit "dog" is governed based on the number

Usage

1
pU(unit, n, units = NULL)

Arguments

unit

string

n

vector of governing number

units

plural for the unit. If NULL, will be formed by adding 's' to unit.

Value

vector of strings

Examples

1
#

rushkin/bitsandends documentation built on Oct. 21, 2020, 11:43 a.m.