Re: [R] 'all' inconsistent?

From: Giovanni Petris <GPetris_at_uark.edu>
Date: Tue 31 Jan 2006 - 02:12:01 EST

> 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@uark.edu ]
[ Department of Mathematical Sciences              ]
[ University of Arkansas - Fayetteville, AR 72701  ]
[ Ph: (479) 575-6324, 575-8630 (fax)               ]
[ http://definetti.uark.edu/~gpetris/              ]
[__________________________________________________]

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Tue Jan 31 02:26:51 2006

This archive was generated by hypermail 2.1.8 : Tue 31 Jan 2006 - 08:22:09 EST