[R] IFELSE function XXXX

From: Dan Abner <dan.abner99_at_gmail.com>
Date: Tue, 05 Apr 2011 15:58:17 -0400

Hello everyone,

This IFELSE function call is not working properly. I do not receive an error message, but the actions are not executed conditional as I was hoping. Any assistance is appreciated.

rdata3<-transform(data.frame(res1),input1=rnorm(10000,50,10)) data3
#inducing correlation between res1 & input1 ifelse(data3$res1==1,data3$input1<-data3$input1+10,data3$input1<-data3$input1) data3

Thank you,


        [[alternative HTML version deleted]]

R-help_at_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. Received on Tue 05 Apr 2011 - 20:52:28 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 05 Apr 2011 - 21:20:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive