[R] Help If

Rui Barradas ruipbarradas at sapo.pt
Thu Aug 29 10:28:00 CEST 2013


Hello,

and is && ; or is || ; and print() needs the parenthesis around its argument

if((condition1 && condition2) || (condition3 && condition4)) {print(uhvef)}


Hope this helps,

Rui Barradas

Em 29-08-2013 09:16, Mª Teresa Martinez Soriano escreveu:
> Hi to everyone and sorry for my question,  I would like to use IF in an example like this:
>
>
> If((condition1 and condition2) Or (condition 3 and condition4)) {print uhvef}
>
>
> BUt I don´t know how to write it correctly,
>
> Thanks in advance 		 	   		
> 	[[alternative HTML version deleted]]
>
>
>
> ______________________________________________
> 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.
>



More information about the R-help mailing list