tests/testthat/testEOMONTH.R

Return1 <- EOMONTH(DATE(2020,1,1),3)
Return2 <- EOMONTH(DATE(2020,1,1),-2)




expect_equal(Return1,as.Date("2020-4-30"))
expect_equal(Return2,as.Date("2019-11-30"))

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.