Defines functions DAY

Documented in DAY

# DAY Function from Excel
#' Basic DAY function from excel
#' It acts similiarly to Excel's DAY function. It gives you the day from specified date.
#' @param date Give the date argument so it can extract day from the date.
#' @import base
#' @import lubridate
#' @export
#' @examples
#' DAY(DATE(2020,1,13))
#' @return in this example we have 13th of January. Function will return 13 as it is the day from the date. Function will always return numeric class.

DAY <-

  as.numeric(format(date, '%d'))


Try the ExcelFunctionsR package in your browser

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

ExcelFunctionsR documentation built on July 1, 2020, 8:35 p.m.