On Fri, 21 Jan 2011, Sven Schreiber wrote: > I'm having a problem with what may be called variable "lifetime" or > scope. Consider the two trivial scripts: > > <script1> > scalar temp = 1 > </script1> > > <script2> > matrix temp = muniform(2,1) > </script2> > > If I run both of them in this order, the second one gives an error, > apparently because gretl doesn't like to put a matrix result into the > scalar variable temp... > > (BTW, I know that the 'open' command clears gretl's workspace, which > would probably be the solution here. But I find myself doing more and > more with gretl's nice matrix language without opening datafiles. So > maybe a 'clear' command is needed?)
"dataset clear" will do the job. Allin Cottrell