eelbrain.Interaction.enumerate_cells

Interaction.enumerate_cells(name=None)

Enumerate the occurrence of each cell value throughout the data

Parameters:

name (None | str) – Name for the returned Var.

Returns:

enum – Result.

Return type:

Var

Examples

>>> f = Factor('aabbccabc')
>>> f.enumerate_cells()
Var([0, 1, 0, 1, 0, 1, 2, 2, 2])