[R] 'all' inconsistent?

Giovanni Petris GPetris at uark.edu
Mon Jan 30 16:12:01 CET 2006


> I thought all the values are false, all none of them, because there
> aren't any that are true:
> 
> any(logical(0))
> [1] FALSE
> 

This is for the same reason why a product over an empty set of
factors is 1, and a sum over an empty set of terms is 0.

GP

-- 

 __________________________________________________
[                                                  ]
[ Giovanni Petris                 GPetris at uark.edu ]
[ Department of Mathematical Sciences              ]
[ University of Arkansas - Fayetteville, AR 72701  ]
[ Ph: (479) 575-6324, 575-8630 (fax)               ]
[ http://definetti.uark.edu/~gpetris/              ]
[__________________________________________________]




More information about the R-help mailing list