ps_plural: Plural

View source: R/punctuate.R

ps_pluralR Documentation

Plural

Description

Plural

Usage

ps_plural(x, n = 1L, end = "")

Arguments

x

A string to pluralize.

n

A count of the number of occurrences of x.

end

A string of the last part of the pluralization (useful for adding punctuation).

Value

A string

Examples

ps_plural("column", 1)
ps_plural("column", 2)
ps_plural("column", 3, end = ".")

poissonconsulting/poisutils documentation built on Feb. 26, 2023, 10 a.m.