Returns a plural or singular form depending on whether value is equal 1. By default it returns plural suffix "-s" or singular empty suffix.

pluralize(value, plural = "s", singular = "")

Arguments

value

[numeric()]
Values to check for equality to 1.

plural

[character(1)]
String to return if equality not satisfied.

singular

[character(1)]
String to return if equality satisfied.

Value

A vector of plural/singular values of the same length as value

parameter.