eelbrain.align1
- eelbrain.align1(d, to, by='index', out='data')
Align a data object to an index variable
- Parameters:
d (data-object) – Data object with cases that should be aligned to
idx.to (data-object) – Index array to which
dshould be aligned. Iftois aDataset, useto[by].by (str | data-object) – Variable labeling cases in
dfor aligning them toto. Ifdis aDataset,bycan be the name of a variable ind.out ('data' | 'index') – Return a restructured copy of
d(default) or an index array intod.
- Returns:
d_aligned – Aligned copy of
d(or index to aligndtoidxifout='index').- Return type:
data-object | array
See also
alignAlign two data-objects