eelbrain.Factor.as_varΒΆ

Factor.as_var(self, labels, default=None, name=None)ΒΆ

Convert into a Var

Parameters:
labels : dict

A {old_value: new_value} mapping.

default : None | scalar

Default value for old values not mentioned in labels. If not specified, old values missing from labels will raise a KeyError.

name : str

Name of the output Var (default is current name).