[R] conditional IF with AND

Henrique Dallazuanna wwwhsd at gmail.com
Wed Aug 13 20:20:42 CEST 2008


See:

?`&`


On Wed, Aug 13, 2008 at 1:45 PM, rcoder <mpdotbook at gmail.com> 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] <condition1>, a[x,y] <condition2>)
>
> I've trawled through the help files, but I cannot find an example of the
> syntax for incorporating an AND in a conditional IF statement.
>
> Thanks,
>
> rcoder
> --
> View this message in context: http://www.nabble.com/conditional-IF-with-AND-tp18966890p18966890.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O



More information about the R-help mailing list