assign_time_of_day: Add human readable columns to a timestamps object

View source: R/time_of_day_binner.R

assign_time_of_dayR Documentation

Add human readable columns to a timestamps object

Description

Add human readable columns to a timestamps object

Usage

assign_time_of_day(timestamps, timezones)

Arguments

timestamps

a dataframe with columns author and created_UTC

timezones

a dataframe with columns author and timezone

Value

a timestamps object that includes extra columns for hour, 15-minute-interval within the hour, date, and day of week

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)
assign_time_of_day(my_timestamps, my_timezones)

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