R/extract_movement_functions.R
extract_fruit_task.Rd
NOTE: the fruit collection data frames contain no information on when the trial ends; only on the last event of the task. Hence it is not possible to extract the fruit collection rate without providing start and end time stamps.
extract_fruit_task(df, min_time = 0, max_time = Inf, method = "sum")
A fruit collection data frame. Expected columns are `time` and `event`.
minimum time in s (default trial start)
maximum time in s (default trial end)
whether to extract sum (default) or rate
Sum of fruits or average of fruits picked per second, between `min_time` and `max_time`.