View source: R/time_of_day_binner.R
assign_time_of_day | R Documentation |
Add human readable columns to a timestamps object
assign_time_of_day(timestamps, timezones)
timestamps |
a dataframe with columns author and created_UTC |
timezones |
a dataframe with columns author and timezone |
a timestamps object that includes extra columns for hour, 15-minute-interval within the hour, date, and day of week
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) assign_time_of_day(my_timestamps, my_timezones)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.