Skip to content

Instantly share code, notes, and snippets.

@BillPetti
Last active May 17, 2016 00:14
Show Gist options
  • Save BillPetti/056ce32eb20155ba38bb7e56cc3e0e80 to your computer and use it in GitHub Desktop.
Save BillPetti/056ce32eb20155ba38bb7e56cc3e0e80 to your computer and use it in GitHub Desktop.
Function takes any distance in feet and converts it to the number of Jose Altuves
# Inspired by http://www.howmanyaltuves.com/
# function takes any distance in feet and converts it to the number of Jose Altuves
howmanyAltuves <- function(x) {
altuves <- x/5.416666666666667
return(paste0(round(altuves,1), " Altuves"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment