R/processing_trial_functions.R
get_label_distribution.RdTakes a trial results dataframe, extracts durations of each unique label within nested tibbles and returns the distribution of durations per label and proportion of total time.
get_label_distribution(df, outer_col, inner_col)If the trial results dataframe is grouped then it returns a tibble with the
distributions nested in distributions column per group.