Re: [Rd] && and |

From: Jared O'Connell <jared.oconnell_at_gmail.com>
Date: Mon, 14 Apr 2008 08:58:10 +0200

Use just "&" or "|", these perform element wise,

> c(1,2) && c(0,1)

[1] FALSE
> c(1,2) & c(0,1)

[1] FALSE TRUE         [[alternative HTML version deleted]]



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon 14 Apr 2008 - 07:46:40 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 14 Apr 2008 - 08:31:09 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive