eelbrain.Factor.isin

Factor.isin(values)

Find the index of entries matching one of the values

Returns

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

Return type

index

Examples

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