Learn R Programming

ratlas (version 0.1.1)

apa_words: Write APA Words

Description

Confused about whether a number should be written out ("five") or use numerals ("5")? Use this function! Most useful for R Markdown in-text writing.

Usage

apa_words(x, ordinal = FALSE)

Value

A character string

Arguments

x

The number to be printed

ordinal

Do you want the ordinal numbering (e.g., 1st, 6th, etc.)

Examples

Run this code
apa_words(5)
apa_words(16)
apa_words(6, ordinal = TRUE)

Run the code above in your browser using DataLab