eelbrain.align1
- eelbrain.align1(d, to, by='index', out='data')[source]
Align a data object to an index variable
- Parameters:
d (Dataset | Var | NDVar | Factor | Interaction | NestedEffect | Model | Datalist) – Data object with cases that should be aligned to
idx.to (Var | NDVar | Factor | Interaction | NestedEffect | Model | Datalist) – Index array to which
dshould be aligned. Iftois aDataset, useto[by].by (str | Var | NDVar | Factor | Interaction | NestedEffect | Model | Datalist) – Variable labeling cases in
dfor aligning them toto. Ifdis aDataset,bycan be the name of a variable ind.out (Literal['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:
DataObjectArg | numpy.ndarray
See also
alignAlign two data-objects