[R] Odp:  table, sum, cat function
    Petr PIKAL 
    petr.pikal at precheza.cz
       
    Tue Aug 25 14:24:59 CEST 2009
    
    
  
Hi
r-help-bounces at r-project.org napsal dne 25.08.2009 12:07:11:
> Hi,
> 
> the second step in my exercice is to calculate the sum of the amout for 
each 
> class et not the frequency 
> 
> i have this vector
> 
> x           y
> 1          100
> 2          1500 
> 3          3250
> 4          6250
> 5          2000
> 6           450
> 
> 
> i want to use the function table and cat to calculate the sum of the 
amount in
> each class [0-1000], [1000-3000],[> 3000]
It starts to look like some kind of homework. If yes you shall seek the 
help from your tutor.
If you want to do it yourself than tapply, by, aggregate or package doBy 
could be good starting point.
Regards
Petr
> 
> Thank you for your help??
> 
> inchallah
> 
> 
> 
>    [[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.
    
    
More information about the R-help
mailing list