Re: [R] ifelse logic and multiple assignments

2010-03-10 Thread Bert Gunter
David: The best advice I can give is: read "An Introduction to R" carefully, taking particular note of the examples and the ideas of vectorization, factors, lists, etc The bottom line is: yes, you can mimic the way SAS or other ancient procedural languages do things in R (e.g. using nested ifelse(

Re: [R] ifelse logic and multiple assignments

2010-03-10 Thread David Winsemius
On Mar 10, 2010, at 11:47 AM, David Young wrote: I'm a fairly new R user and while I have a solution to my problem I'm wondering if there is a better one. In SAS it's common to use if/then logic along with a "do" statement to make several things happen. While I could do the same thing in R us