[R] A. Mani : Avoiding loops

A. Mani a_mani_sc_gs at vsnl.net
Thu Aug 18 22:57:17 CEST 2005


Hello,
        I want to avoid loops in the following situation. There is a 5-col 
dataframe with col headers alone. two of the columns are non-numeric. The 
problem is to calculate statistics(scores) for each element of one column. 
The functions depend on matching in the other non-numeric column.

A  B  C  E  F
1  2  X  Y  1
2  3  G  L  1
3  1  G  L  5
and so on ...30000+ entries.

I need scores for col E entries which depend on conditional implications.


Thanks,

A. Mani
Member, Cal. Math. Soc




More information about the R-help mailing list