Skip to content

Instantly share code, notes, and snippets.

@jsta
Last active December 25, 2016 04:12
Show Gist options
  • Save jsta/3bf73373b840cc91c0dfaa23f2d85336 to your computer and use it in GitHub Desktop.
Save jsta/3bf73373b840cc91c0dfaa23f2d85336 to your computer and use it in GitHub Desktop.
The first one hundred natural numbers in alphabetical order
# https://www.reddit.com/r/mildlyinteresting/comments/5k4eqd/the_first_100_positive_integers_in_alphabetical
# https://imgur.com/Ylmw8K6
source("https://raw.githubusercontent.com/ateucher/useful_code/master/R/numbers2words.r")
dt <- numbers2words(1:100)
dt <- order(dt)
dt <- matrix(dt, nrow = 10, byrow = TRUE)
knitr::kable(data.frame(dt), caption = "The first one hundred natural numbers in alphabetical order")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment