toOrdinal 0.0-1

is_html_output = function() {
  knitr::opts_knit$get("rmarkdown.pandoc.to")=="html"
}
knitr::opts_chunk$set(collapse = TRUE, comment = "", prompt=TRUE, fig.dpi = 96)
if (is_html_output()) {
    options(width=1000)
}

This is the initial release of the toOrdinal package. The toOrdinal package was developed to convert cardinal to ordinal numbers. Because ordinal numbers are language specific, the package will have different options for different languages that will be added as time permits and with the help from contributors.

library(toOrdinal)
toOrdinal(5)
sapply(1:20, toOrdinal)

For complete toOrdinal documentation, see the documentation



Try the toOrdinal package in your browser

Any scripts or data that you put into this service are public.

toOrdinal documentation built on March 18, 2022, 6:34 p.m.