Description Usage Arguments Value Examples
get the latest value in the month
1 |
xTs |
xts object (currently) eomData only works on single column xtx objects |
xts object of the last observation with the month date rounded up to the last day of the month
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# library(xts)
# > xTs <- xts(c(1,NA_real_,2), zoo::as.Date(c(1,11,21)))
# > xTs
# [,1]
# 1970-01-02 1
# 1970-01-12 NA
# 1970-01-22 2
#
# > eomData(xTs = xTs)
# [,1]
# 1970-01-31 2
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.