R/monthNum.R
monthNum.Rd
Converts dates to the corresponding numeric month.
monthNum(y)
date
Alan Jassby, James Cloern
monthNum(as.Date(c("2007-03-17", "2003-06-01"))) #> [1] 3 6