which.leap | R Documentation |
Return the indices of leap years in a vector of years
which.leap(years)
years |
a integer vector of (gregorian) years |
a vector of indices of the position of leap years
J. Bedia
https://en.wikipedia.org/wiki/Leap_year#Algorithm
Other get.helpers:
get2DmatCoordinates()
,
getCoordinates()
,
getDim()
,
getGrid()
,
getGridProj()
,
getGridVerticalLevels()
,
getRefDates()
,
getSeason()
,
getShape()
,
getStationID()
,
getVarNames()
,
getWT()
,
getYearsAsINDEX()
,
setGridProj()
,
typeofGrid()
leap.years <- which.leap(1885:1937)
(1885:1937)[leap.years]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.