Re: [R] If condition using accessors

2009-11-27 Thread Vitória Magalhães Piai
Thanx. I'll just post in here the way I solved it in case someone happens to need something similar in the future. It may not be the most elegant way, but it worked! yes = "small" no = "large" data3$group = ifelse(data3$SIE < 50.64593,yes,no) Peter Ehlers wrote: Peter Ehlers wrote: Vitória

Re: [R] If condition using accessors

2009-11-27 Thread David Winsemius
On Nov 27, 2009, at 5:34 AM, Vitória Magalhães Piai wrote: Hi, I'm quite new using R and have got no one to help me get through it. Hopefully someone can help me with one problem I've been struggling with for the last hours!! (Sorry if I'm using the wrong terminology as well!) I have a d

Re: [R] If condition using accessors

2009-11-27 Thread Peter Ehlers
Peter Ehlers wrote: Vitória Magalhães Piai wrote: Hi, I'm quite new using R and have got no one to help me get through it. Hopefully someone can help me with one problem I've been struggling with for the last hours!! (Sorry if I'm using the wrong terminology as well!) I have a data matrix

Re: [R] If condition using accessors

2009-11-27 Thread Peter Ehlers
Vitória Magalhães Piai wrote: Hi, I'm quite new using R and have got no one to help me get through it. Hopefully someone can help me with one problem I've been struggling with for the last hours!! (Sorry if I'm using the wrong terminology as well!) I have a data matrix in which SIE is one of