Re: [R] Use variable inside Function for updating the matrix

2012-05-29 Thread arun
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

Re: [R] Use variable inside Function for updating the matrix

2012-05-29 Thread Rantony
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

Re: [R] Use variable inside Function for updating the matrix

2012-05-29 Thread Uwe Ligges
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

[R] Use variable inside Function for updating the matrix

2012-05-29 Thread Rantony
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