Description Usage Arguments Value Examples
Filter (subset) an xts object Subsets an xts object from start (s) to end (e). If either is omitted, the earliest or latest observation is used If n is not null it will return n observations from the last date (e).
1 | dateFilter(xtsData, s = NULL, e = NULL, n = NULL)
|
xtsData |
xts object to be filtered (subsetted) |
s |
Start date |
e |
End date |
n |
Number of observations |
xts object
1 2 | dateFilter(xtsOjbect,s="2012-12-31",e="2017-12-31")
dateFilter(xtsOjbect,e="2017-12-31", n=60)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.