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
d
should be aligned. Ifto
is aDataset
, useto[by]
.by (str | data-object) – Variable labeling cases in
d
for aligning them toto
. Ifd
is aDataset
,by
can 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 alignd
toidx
ifout='index'
).- Return type:
data-object | array
See also
align
Align two data-objects