add_article {headliner}R Documentation

Append a/an to word

Description

Append a/an to word

Usage

add_article(x)

Arguments

x

string or numeric value

Details

This function uses crude logic to append 'a' or 'an' to numbers and phrases.

Value

Returns a vector the same length as the input.

Examples

add_article("increase")

add_article("decrease")

add_article(c(1, 8, 10, 11, 18, 20, 80))

add_article(18123)

stats::setNames(
  add_article(1.8 * 10^(1:7)),
  prettyNum(1.8 * 10^(1:7), big.mark = ",")
)


[Package headliner version 0.0.3 Index]