Creates a 'trial' column and aligns the first sweep in each condition to trial '1'. The original sweep value is not overwritten.
Arguments
- df
Data Frame or Tibble, with the following columns: * sweep * condition
- condition_names
Character vector with condition names.