Re: [R] conditional IF with AND

2008-08-13 Thread rcoder
Thank you all for your replies. This is all very useful information for me! Ted, thank you very much for the extra explanation and example. Many thanks, rcoder Ted.Harding-2 wrote: > > On 13-Aug-08 16:45:27, rcoder wrote: >> Hi everyone, >> I'm trying to create an "if" conditional statement

Re: [R] conditional IF with AND

2008-08-13 Thread Ted Harding
On 13-Aug-08 16:45:27, rcoder wrote: > Hi everyone, > I'm trying to create an "if" conditional statement with two conditions, > whereby the statement is true when condition 1 AND condition 2 are met: > > code structure: > if ?AND? (a[x,y] , a[x,y] ) > > I've trawled through the help files, but I

Re: [R] conditional IF with AND

2008-08-13 Thread Henrique Dallazuanna
See: ?`&` On Wed, Aug 13, 2008 at 1:45 PM, rcoder <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > I'm trying to create an "if" conditional statement with two conditions, > whereby the statement is true when condition 1 AND condition 2 are met: > > code structure: > if ?AND? (a[x,y] , a[x,y] ) >

Re: [R] conditional IF with AND

2008-08-13 Thread Erik Iverson
if(cond1 && cond2) { ... } rcoder wrote: Hi everyone, I'm trying to create an "if" conditional statement with two conditions, whereby the statement is true when condition 1 AND condition 2 are met: code structure: if ?AND? (a[x,y] , a[x,y] ) I've trawled through the help files, but I canno

[R] conditional IF with AND

2008-08-13 Thread rcoder
Hi everyone, I'm trying to create an "if" conditional statement with two conditions, whereby the statement is true when condition 1 AND condition 2 are met: code structure: if ?AND? (a[x,y] , a[x,y] ) I've trawled through the help files, but I cannot find an example of the syntax for incorporat