Grocer >> Basic functions > is_empty
is_empty
check if a variable is empty
PARAMETERS
- Input
* v = a matrix, a list or a ts
- Output
* b = a boolean equal to %t is the variable is empty, %f if it is not
DESCRIPTION
This is a simple extension of Scilab function isempty, extended to deal with ts. Note that, even if it is possible to create an empty ts, this extension is useful mainly to deal with entries to econometric functions and prevent isempty to send an error when it meets a ts.
EXAMPLE
a=1;is_empty(a(2:$))
is_empty(find(rand(1:10)==5))
load(GROCERDIR+'/macros/grocer/db/bdhenderic.dat');is_empty(lm1)
|  |  | |
AUTHOR
Eric Dubois 2006