get_avg_trials: Compute average trials per condition across individuals

View source: R/formatting_fits_ids_dm.R

get_avg_trialsR Documentation

Compute average trials per condition across individuals

Description

internal helper — assumes each ID appears with the same set of conditions in column Cond. counts trials per ID×Cond and averages across ID.

Usage

get_avg_trials(obs_data_ids)

Arguments

obs_data_ids

data frame with columns ID and Cond; one row per trial.

Value

list with:

  • N: number of unique individuals

  • avg_trials: named numeric vector of average trials per condition


dRiftDM documentation built on Aug. 23, 2026, 5:11 p.m.