Skip to content
Prev 77244 / 398502 Next

if() command

Hi 

Sorry, I am not sure why sometimes is a text from my answeres 
stripped off.
On 14 Sep 2005 at 14:09, Carlos Mauricio Cardeal Mende wrote:

            
{group <-
used
Others has already answered it but I told you that if command is  
not vhat you probably want and suggested to use cut e.g.

cutvector <- c(0,10,20,100) 
group <- as.numeric(cut(age,cutvector)) 

You can change your cutvector according to your wish anytime  
before calling the second function 

HTH 
Petr
wrote:
content
example:
not
{group <-
10 &
or
can
expand the
Petr Pikal
petr.pikal at precheza.cz