[STATSGRASS] numeric(0) ?????
Massimiliano Cannata
massimiliano.cannata at supsi.ch
Tue Dec 2 05:43:22 EST 2003
hello,
I have a little problem with my script:
I select a subset from a data frame
for (i in 1:20){
T$pippo[T$pluto==i]
}
but sometime it is void because T$pluto==5 does not exists, the R answer is:
T$pippo[T$pluto==5]
> numeric(0)
how to exclude this null subset?
and what is numeric(0), similar to NA?
I try an if statement, but how to write if T$pippo[T$pluto==i] is numeric(0)???
Thanks a lot.
Maxi
-------------
Ing. Massimiliano Cannata
Istituto di Scienze della Terra - SUPSI
C.P. 72 - CH-6952 Canobbio (Ticino, Switzerland)
Tel +41 91 /935 12 25 - Fax +41 91 /935 12 09
eMail: massimiliano.cannata at supsi.ch
Internet: http://www.ist.supsi.ch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-stats/attachments/20031202/973a3c99/attachment.html
More information about the grass-stats
mailing list