rethomics / behavr

Data structure to store and manipulate high throughput behavioural data in R
http://rethomics.github.io
6 stars 4 forks source link

bin_apply does not downsample #36

Open qgeissmann opened 6 years ago

qgeissmann commented 6 years ago

e.g. we want to sample at 1/10 s

dt <- toy_dam_data()
regular_data <- behavr::bin_apply_all(dt,
                                    x = t,
                                    y = activity,
                                    x_bin_length = 10)

unique(diff(regular_data[,t]))

we get 60 this explains

https://github.com/rethomics/zeitgebr/issues/7