Learn R Programming

lsasim (version 2.1.6)

pluralize: Pluralize words

Description

Pluralize a word

Usage

pluralize(word, n = rep(2, length(word)))

Value

word, either pluralized or not (depending on n)

Arguments

word

vector of characters to be pluralized

n

vector of number of times each word appears (to determine if the plural or single form will be returned)