View source: R/estimate_bedtimes.R
estimate_bedtimes | R Documentation |
Estimate bedtimes of users from circadian fingerpints and model
estimate_bedtimes(bins, model)
bins |
circadian fingerpints of users |
model |
a unified idealized model |
inferred bedtimes of users
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,1,2,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)) rh <- seq(-8,15.75,0.25) my_model <- data.frame(relhour=rh, idealFreq=(rh/15)^2) estimate_bedtimes(my_bins, my_model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.