?"&" will show
See Syntax for the precedence of these operators: unlike many other languages (including S) the AND and OR operators do not have the same precedence (the AND operators are higher than the OR operators). Ted. Delphine Fontaine wrote on 07/17/2007 04:59 PM: > Dear R-users, > > I haven’t found rules for logical operators. I need to select data according > the following rule: > Condition A & (Condition B | Condition C) How should I write it ? Is > Condition A & Condition B | Condition C correct or will R execute (Condition > A & Condition B) | Condition C ? > > Thanks for your help. > > Delphine Fontaine > > > > > > > Delphine Fontaine > Statistician > Statistics Department - Genexion SA > ------------------------------------------------------------ > 29, Quai du Mont-Blanc > Genva, CH-1201 > Switzerland > ------------------------------------------------------------ > Office: +41 22 704 32 44 > Fax: +41 22 704 32 42 > Email: [EMAIL PROTECTED] > > ______________________________________________ > [email protected] 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. > -- Dr E.A. Catchpole Visiting Fellow Univ of New South Wales at ADFA, Canberra, Australia _ and University of Kent, Canterbury, England 'v' - www.pems.adfa.edu.au/~ecatchpole / \ - fax: +61 2 6268 8786 m m - ph: +61 2 6268 8895 ______________________________________________ [email protected] 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.
