tests/testthat/_snaps/label-ordinal.md
raw| 1 | # ordinal format in English |
| 2 | |
| 3 | Code |
| 4 | ordinal(c(1:4, 11:21, 101, NA)) |
| 5 | Output |
| 6 | [1] "1st" "2nd" "3rd" "4th" "11th" "12th" "13th" "14th" "15th" |
| 7 | [10] "16th" "17th" "18th" "19th" "20th" "21st" "101st" NA |
| 8 | Code |
| 9 | ordinal(c(1, 2, 10, 11, NA), rules = ordinal_french()) |
| 10 | Output |
| 11 | [1] "1er" "2e" "10e" "11e" NA |
| 12 | Code |
| 13 | ordinal(c(1, 2, 10, 11, NA), rules = ordinal_french("f", TRUE)) |
| 14 | Output |
| 15 | [1] "1res" "2es" "10es" "11es" NA |
| 16 |