View source: R/hsLibDateTime.R
selectTimeIntervalDays | R Documentation |
Select Time Interval Days
selectTimeIntervalDays( dat, days = 7, firstDay = as.character(as.Date(lastDay) - days), lastDay = substr(utils::tail(dat$DateTime, 1), 1, 10), dbg = TRUE )
dat |
data frame with column "DateTime" |
days |
number of "last" days to select |
firstDay |
first day as text, in "yyyy-mm-dd" format |
lastDay |
last day as text, in "yyyy-mm-dd" format |
dbg |
if |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.