Re: [R] Count of elements in coulmns of a matrix

2012-07-10 Thread arun
rom: Rantony To: r-help@r-project.org Cc: Sent: Tuesday, July 10, 2012 8:31 AM Subject: [R] Count of elements in coulmns of a matrix 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 --      - 

Re: [R] Count of elements in coulmns of a matrix

2012-07-10 Thread Sarah Goslee
It depends: what's in those "empty" space? Some combination of apply() and something else, depending on what your matrix *actually* looks like, and here dput() would be vastly preferable to copy and paste of something that didn't even come from an R session. The something else might involve lengt

[R] Count of elements in coulmns of a matrix

2012-07-10 Thread Rantony
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 XYZPQR -- - -- 234 4 5 54 3 2 Result will be like ABC