eelbrain.Factor.enumerate_cells¶
-
Factor.
enumerate_cells
(self, name=None)¶ Enumerate the occurrence of each cell value throughout the data
Parameters: - name : None | str
Name for the returned Var.
Returns: - enum : Var
Result.
Examples
>>> f = Factor('aabbccabc') >>> f.enumerate_cells() Var([0, 1, 0, 1, 0, 1, 2, 2, 2])