eelbrain.Factor.isany

Factor.isany(self, *values)

Find the index of entries matching one of the *values

Returns:
index : array of bool

For each case True if the value is in values, else False.

Examples

>>> a = Factor('aabbcc')
>>> b.isany('b', 'c')
array([False, False,  True,  True,  True,  True], dtype=bool)