EOMONTH: Basic EOMONTH function from excel

Description Usage Arguments Value Examples

View source: R/EOMONTH.R

Description

It acts similiarly to Excel's EOMONTH function. It returns the end of month date for the specified date.

Usage

1

Arguments

date

Give the date argument so it can give you the end of the month.

months

The number of months before or after start_date. A positive value for months yields a future date; a negative value yields a past date.

Value

In this case we specify 2nd June 2008. Function returns end of the month which is 30th June 2008. Function will always return Date class.

Examples

1
EOMONTH(DATE(2008,6,2))

Example output

[1] "2008-06-30"

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