View source: R/time_of_day_binner.R
counterQ15 | R Documentation |
Counts the number of instances of values 0 through 95
counterQ15(Z)
Z |
integer vector of what 15-minute intervals of the day a set of posts occurred at |
the counts of posts at each 15-minute interval of the day
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.