powered by
This function determines whether a given year is a leap year
leap_year(x)
integer value, representing year number
boolean variable (TRUE or FALSE)
Takes a year number as input, and returns TRUE if this is a leap year, and FALSE if not
https://en.wikipedia.org/wiki/Leap_year
# NOT RUN { leap_year(2015) leap_year(2016) # }
Run the code above in your browser using DataLab