View source: R/model_bedtimes.R
filter_sufficient | R Documentation |
filters aggregated by bedtime object to include rows representing at least threshhold authors
filter_sufficient(mag, threshhold = 10)
mag |
aggregated-by-bedtime data frame |
threshhold |
the minimum number of authors required to include a bedtime |
filtered aggregated-by-bedtime data frame
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) my_mag <- multi_relativizer(my_binsb) filter_sufficient(my_mag, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.