isnull
Output: integer
Argument: name (string)
I have tried this
nulldata 1
list nlist = null
z = isnull(varname(nlist))
z
series v1 = 1
list vlist = v1
eval vlist[1]
z2 = isnull(varname(vlist))
z2
I agree with you in that
isnull() should output error with a list argument,
or correct 0/1 and not 0 as it does
Oleh
Hi,
a null list somehow isn't a null object to gretl:
<hansl>
open denmark # dummy dataset
list lh = null
if isnull(lh)
print "yep" # doesn't get printed
endif
</hansl>
I actually can understand conceptually that the list 'lh' is "empty"
rather than non-existing, but then I think either there should be this
(new) keyword 'empty' for lists, or isnull(lh) should return True/1 in
this case.
I also know (and used the fact) that we have 'nelem(lh) == 0' to achieve
the check I want to have, but still.
thanks,
sven
_______________________________________________
Gretl-devel mailing list
Gretl-devel@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-devel