Extracts the the value of an inner_col in a movement or eye tracker tibble at a specified time. Returns the original variable type of the inner_col.

extract_at_time(df, inner_col, time, tolerance = 0.1)

Arguments

df

Any tibble with columns time and inner_col

inner_col

Any column in df (character)

time

A time stamp on the same scale as the time column

tolerance

Generate warnings if closest timestamp further than this tolerance (default 0.1s)