[R] Average row and column

MSousa ricardosousa2000 at clix.pt
Thu Mar 15 11:52:46 CET 2012


Hello

I have this code for the count the occurrences between V_source and
V_destine, its can possible make the same, but in local the total the
occurrences to appear the mean or the minimum
 
Dataset
  	df.v_source df.v_destine df.dif
1             3            3      4
2             7            7      0
3             6            6      0
4             3            4     35
5             4            4     56
6             4            3     61
7             3            3    300
8             3            3     27
9             3            3     33
10            3            3     87
11            3            4     49

minimum<-: appears to this
     1  2  3  4  5  6  7
  1  0  0  0  0  0  0  0
  2  0  0  0  0  0  0  0
  3  0  0  4 35  0  0  0
  4  0  0 61 56  0  0  0
  5  0  0  0  0  1  0  0
  6  0  0  0  0  0  0  0
  7  0  0  0  0  0  0  0


--
View this message in context: http://r.789695.n4.nabble.com/Average-row-and-column-tp4474524p4474524.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list