eelbrain.Factor.label_length

Factor.label_length(name=None)

Create Var with the length of each label string

Parameters:

name (str) – Name of the output Factor (default is current name).

Examples

>>> f = Factor(['a', 'ab', 'long_label'])
>>> f.label_length()
Var([1, 2, 10])