eelbrain.Interaction.index
- Interaction.index(cell)
Array with
int
indices equal tocell
Examples
>>> f = Factor('abcabcabc') >>> f Factor(['a', 'b', 'c', 'a', 'b', 'c', 'a', 'b', 'c']) >>> f.index('b') array([1, 4, 7]) >>> f[f.index('b')] = 'new_b' >>> f Factor(['a', 'new_b', 'c', 'a', 'new_b', 'c', 'a', 'new_b', 'c'])