counterQ15: Counts the number of instances of values 0 through 95

View source: R/time_of_day_binner.R

counterQ15R Documentation

Counts the number of instances of values 0 through 95

Description

Counts the number of instances of values 0 through 95

Usage

counterQ15(Z)

Arguments

Z

integer vector of what 15-minute intervals of the day a set of posts occurred at

Value

the counts of posts at each 15-minute interval of the day

Examples

my_timestamps <- data.frame(author=c(1,1,2,2), created_utc=1.6*10^9+c(0,1000,2000,3000))
my_timezones <- create_dummy_timezones(my_timestamps)
my_timestamps <- assign_time_of_day(my_timestamps, my_timezones)
my_timestamps$q15 <- 4*my_timestamps$hour + 4*my_timestamps$m15
 hx <- my_timestamps[!duplicated(my_timestamps[,c("author", "q15", "date")]),]
 af <- stats::aggregate(q15 ~ author, FUN=counterQ15, hx)

WillMeyerson/BEDDiT documentation built on Feb. 2, 2023, 6:37 p.m.