Description Usage Arguments Examples
View source: R/get_years_difference.R
Returns the exact age of a player given his birth date and some reference date. Idea from Alex Gable (https://twitter.com/gableingaround).
1 | get_years_difference(from, to)
|
from |
The start date. Typically the player's birth date. |
to |
The reference date. Used for finding a player's draft eligibility, it's typically |
1 2 3 4 | get_years_difference("2000-09-15", "2018-09-15")
# My birthday -- don't forget it!
get_years_difference("1995-10-22", "2018-08-27")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.