E
3 PQR 40 USA TRUE
4 MNO 30 KENYA TRUE
5 DEF 25 AUSTRALIA
I hope this helps.
A.K.
- Original Message -----
From: Rantony
To: r-help@r-project.org
Cc:
Sent: Tuesday, May 29, 2012 3:17 AM
Subject: [R] Use variable inside Function for upd
Hi Uwe,
How can we give "OR" Operator instead of "AND" here.
dat[, tmpCol] <- ifelse(dat$AGE<=35 & da$AGE>18, "YES", " ")
I want change this to "OR"
dat[, tmpCol] <- ifelse(dat$AGE<=35 OR da$AGE>18, "YES", " ")
"OR" - How it is possible ?
From: Uwe Ligges-3 [via R]
[mailto:m
On 29.05.2012 09:17, Rantony wrote:
Hi,
Here i have a data frame like this,
frame name is "dat"
*NAME AGE ELIGIBLE*
A 20
B 14
C 35
D 10
E 50
In this, i want to change the column
Hi,
Here i have a data frame like this,
frame name is "dat"
*NAME AGE ELIGIBLE*
A 20
B 14
C 35
D 10
E 50
In this, i want to change the column '*ELIGIBLE*' status to '*YES
4 matches
Mail list logo