On Wed, 23 Apr 2014, Logan Kelly wrote:
[I]t would be nice to be able to add a variable to the dataset with a
simple function call.
I think there's a misapprehension here. There's no problem with adding a
series to the dataset via a function call, provided the series in question
is made available as the return value of the function.
A series added within a function is discarded when the function exits
_unless_ it is offered as a return value and this value is assigned by the
caller.
The same goes for lists: a function can offer a list of series as a return
value, and if this is assigned to something by the caller, multiple series
may thereby be added to the "main" dataset.
Allin