multi_relativizer: Relativizes the bins of each bedtime within a bins_bedtime...

View source: R/model_bedtimes.R

multi_relativizerR Documentation

Relativizes the bins of each bedtime within a bins_bedtime data frame

Description

Relativizes the bins of each bedtime within a bins_bedtime data frame

Usage

multi_relativizer(binsb)

Arguments

binsb

a data frame with cols 3:98 as midnight-relativized freqs and there is bedtime col

Value

a data frame with cols 3:98 as bedtime-relativized freqs and there is bedtime col

Examples

my_timestamps <- data.frame(author=c(1,1,2,2), created_utc=1.6*10^9+c(0,1000,2000,3000))
my_bedtimes <- data.frame(author=c(1,2), nightbed=c(-1,1))
my_timezones <- create_dummy_timezones(my_timestamps)
my_bins <- time_of_day_binner(assign_time_of_day(my_timestamps, my_timezones))
my_binsb <- aggregate_by_bedtime(my_bins, my_bedtimes)
multi_relativizer(my_binsb)

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