eelbrain.Dataset.add_empty_var

Dataset.add_empty_var(name, dtype=<class 'numpy.float64'>)

Create an empty variable in the dataset

Parameters:
  • name (str) – Name for the new variable.

  • dtype (numpy dtype) – Data type of the new variable (default is float64).

Returns:

var – The new variable.

Return type:

Var