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)
[1] "5th"
> sapply(1:20, toOrdinal)
 [1] "1st"  "2nd"  "3rd"  "4th"  "5th"  "6th"  "7th"  "8th"  "9th"  "10th" "11th" "12th" "13th" "14th" "15th" "16th" "17th" "18th" "19th" "20th"

For complete toOrdinal documentation, see the documentation