Skip to contents

Creates a 'trial' column and aligns the first sweep in each condition to trial '1'. The original sweep value is not overwritten.

Usage

align_condition_sweeps(df, condition_names)

Arguments

df

Data Frame or Tibble, with the following columns: * sweep * condition

condition_names

Character vector with condition names.

Value

Data Frame or Tibble, with the additional column: * trial