[R] Count of elements in coulmns of a matrix

Rantony antony.akkara at ge.com
Tue Jul 10 14:31:04 CEST 2012


Could you please tell me what is the function or method to get count of
elements in all the columns in a matrix ?

for eg :-

ABC      XYZ    PQR
------      -----     ------
2            3            4
               4           5
5            4           3
              2

Result will be like
ABC      XYZ    PQR
------      -----     ------
2             4            3

Could you please help me ?

--
View this message in context: http://r.789695.n4.nabble.com/Count-of-elements-in-coulmns-of-a-matrix-tp4635979.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list