pl: Pluralize based on vector length

View source: R/utils.R

plR Documentation

Pluralize based on vector length

Description

Pluralize based on vector length

Usage

pl(x, stem = NULL)

Arguments

x

A vector used ot derive a pluralization.

stem

If present, append "s" to stem if plural.

Value

A character vector.

Examples

pl(1:2)
pl(1:2, "item")

tomshafer/tshfr documentation built on Sept. 27, 2022, 2:42 p.m.