Message-ID: <CA+8X3fULKpgJQ6MOCdv7QWgOFi2Q=EBTtv42XoOsD6Djqd5CZw@mail.gmail.com>
Date: 2015-05-13T12:14:24Z
From: Jim Lemon
Subject: ifelse and "&&" vs "&
In-Reply-To: <SNT407-EAS93FB58DF717BA3119F84AFB9DA0@phx.gbl>
Hi nusrat,
The ifelse function returns the number of values that result from the
logical expression in the first argument. If you use &&, you get one
logical value. If you use & you get logical values for the number of
conditionals that you specify. For example:
1:10 > 0 && 1:10 < 11:20
[1] TRUE
1:10 > 0 & 1:10 < 11:20
[1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
And for your sake and our's, get a real computer.
Jim
On Wed, May 13, 2015 at 2:41 AM, nusrat ullah <nusratthebest at hotmail.com> wrote:
> Ip, g ftehgytreehjjjijiputv
>
> Sent from my iPadgypyrrytutytytfedewaqy?iijj
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.