View source: R/interval-iterator.r
hour_checkin_gen | R Documentation |
The hour interval iterator generator is a special case of
the time interval generator, which iterates over consecutive hours.
While this function may be useful on it's own, if you are interested in
applying a function to (possibly grouped) data, then you may be better off
reading the map_hourly_interval
documentation.
hour_checkin_gen(x, time, end = NULL)
x |
the data frame of checkins. |
time |
the column denoting the timestamp. |
end |
the end of the interval. |
map_hourly_interval
data(checkins) # Get the first hour entries from the beginning of the checkins data. hour_checkin_gen(head(checkins), "timestamp")$nextElem()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.