Generate Condition Sweep Lookup Table (LUT)
     
    
    Usage
    condition_sweep_lut(df, condition_names, column_ref = "sweep")
 
     
    
    Arguments
    - df
 
Data Frame or Tibble, with the following columns:
* sweep OR another reference column, e.g. trial
* condition
 
- condition_names
 
Character vector with condition names.
 
- column_ref
 
Character, reference column to generate LUT. Defaults to "sweep".
 
 
    
    Value
    
Tibble, with the following columns:
* condition Character.
* condition_start Integer, first sweep for a condition.
* condition_end Integer, last sweep for a condition.
* delta Integer, number of sweeps in a condition.
     
    
    Details
    This function will determine the first and last sweep numbers for all conditions, returning a
LUT with the columns, condition_start and condition_end. It also calculates the
number of sweeps for each condition in the column, delta.