Description Usage Arguments Details Value
count_rowsback
determines how many rows should be included
1 | count_rowsback(datetime, back = 2)
|
datetime |
A vector of POSIXct values |
back |
An optional numeric specifying the number of days back to go. Defaults to 2 days. |
This function takes a vector of date/times (of type POSIXct) and counts the
number of rows which would fall within the specified time frame. Typically
called from mutate
and the results are passed on to
rollapplyr
.
An integer with the number of rows; can be passed on to
rollapplyr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.