It would behoove you to read some introductory materials -- use help.start() to get be provided with the standard "An Introduction to R."
More generally, the help system can be accessed by typing help("name") or, as a shortcut, ?name. In your case, help("&") would lead to the correct answer. The OR operator follows the standard of most programming languages -- the "pipe" operator, | . On my keyboard (mac) it's typed by pressing shift+\ -- I forget where it is for a PC. Michael On Tue, May 29, 2012 at 5:40 AM, Rantony <antony.akk...@ge.com> wrote: > Hi Michel, > > > > In this function, I want to apply “OR” operator instead of “&” Condition. > > dat[dat$AGE<=40 & da$AGE>=30,"TRUE/FALSE"]<-TRUE > > > > How it is possible ? > > > > - Thanks > > Antony > > ______________________________________________ R-help@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.