bin_data {ActCR}  R Documentation 
Bin minute level data into different time resolutions
bin_data(x = x, window = 1, method = c("average", "sum"))
x 

window 
window size used to bin the original 1440 dimensional data into. Window size should be an integer factor of 1440 
method 

a vector of binned data
data(example_activity_data) count1 = c(t(example_activity_data$count[1,c(1,2)])) xbin = bin_data(x = count1, window = 10, method = "average")