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")

Arguments

df

A fruit collection data frame. Expected columns are `time` and `event`.

min_time

minimum time in s (default trial start)

max_time

maximum time in s (default trial end)

method

whether to extract sum (default) or rate

Value

Sum of fruits or average of fruits picked per second, between `min_time` and `max_time`.