R/monthNum.R

Defines functions monthNum

Documented in monthNum

#' monthNum
#' @description Converts dates to the corresponding numeric month.
#' @param y date
#' @author 
#' Alan Jassby, James Cloern
#' @export
monthNum <- 
function(y) {
  match(months(y, abbreviate = TRUE), month.abb)
}

Try the wql package in your browser

Any scripts or data that you put into this service are public.

wql documentation built on Aug. 10, 2022, 5:06 p.m.