[R] One basic question - combining two conditions

Karl Ove Hufthammer karl at huftis.org
Tue Nov 17 10:02:25 CET 2009


On Tue, 17 Nov 2009 00:26:13 -0800 (PST) Julia Cains 
<julia_cains at yahoo.com> wrote:
> how do use this "and" operator to combine two conditions.
> 
> I am sorry as I know for many of you, this is very basic question 
> but I am new to R and trying to learn it as early as possible.

The 'and' operator is called '&' in R. Try

?'&'

to display the help page.

You might also be interested in

?ifelse
and
?"if"

-- 
Karl Ove Hufthammer




More information about the R-help mailing list