R/processing_movement_functions.R
resample_fruit_task.Rd
Takes a fruit collection data frame, removes value outside range (from, to), and resamples to new index, where 0 in the new index corresponds to "from". For use with 'summarise'.
resample_fruit_task(df, new_time, from = 0, to = Inf)
A fruit collection data frame. Expected columns: 'time', 'event'
New time index, with respect to "from"
A numerical value of the starting time for resampling (default 0)
A numerical value of the end time for resampling (default inf, i.e. end of the data frame)
A resampled movement data frame