powered by
Bin minute level data into different time resolutions
bin_data(x = x, window = 1, method = c("average", "sum"))
vector of activity data.
vector
window size used to bin the original 1440 dimensional data into. Window size should be an integer factor of 1440
character of "sum" or "average", function used to bin the data
character
a vector of binned data
# NOT RUN { data(example_activity_data) count1 = c(t(example_activity_data$count[1,-c(1,2)])) xbin = bin_data(x = count1, window = 10, method = "average") # }
Run the code above in your browser using DataLab