Hi,

Suppose I have a logical vector x, I want to compute the 'and' and
'or' of all its element (the result should be a single value TRUE or
FALSE). I have read the R-intro.pdf logical vector section, but I
don't find the answer. Can somebody let me know how to do it?

>x= rep(TRUE, 3)

Regards,
Peng

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to