[R] or of a logical vector

Thomas Lumley tlumley at u.washington.edu
Thu Aug 5 23:13:51 CEST 2004


On Thu, 5 Aug 2004 Ted.Harding at nessie.mcc.ac.uk wrote:
> But you can also do these with 'any' and 'all', e.g.
>
>   any(v==TRUE)
>

or any( (v==TRUE)==TRUE), or any( ((v==TRUE)==TRUE)==TRUE)...

Or, perhaps, any(v).

Lewis Carroll wrote a nice piece on this theme.


	-thomas




More information about the R-help mailing list