xtsFilter <- function(timeVector, dateRangeString){
dummyXTS <- xts::xts(x = base::rep(x = 0, times = length(timeVector))
, order.by = timeVector
)
dummyXTS <- dummyXTS[dateRangeString]
filteredDateRange <- zoo::index(dummyXTS)
return(filteredDateRange)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.