Last active
May 17, 2016 00:14
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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