In the code below, the first call to the EOMONTH
function returns NA when I expect February 28, 2019. The second call works correctly. Both calls work correctly in Excel which this function is trying to replicate. Is this a bug or am I doing something wrong?
library(tidyquant)
sdt <- as.Date("2019-01-31")
EOMONTH(sdt, 1)
EOMONTH(sdt, 2)
I have version 1.0.4 of tidyquant and version 4.1.2 of R (Bird Hippie)