hour_checkin_gen: Create an hour interval iterator generator

View source: R/interval-iterator.r

hour_checkin_genR Documentation

Create an hour interval iterator generator

Description

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.

Usage

hour_checkin_gen(x, time, end = NULL)

Arguments

x

the data frame of checkins.

time

the column denoting the timestamp.

end

the end of the interval.

See Also

map_hourly_interval

Examples


data(checkins)

# Get the first hour entries from the beginning of the checkins data.
hour_checkin_gen(head(checkins), "timestamp")$nextElem()


kaneplusplus/checkin documentation built on Aug. 1, 2022, 1:11 p.m.