[R] counting values in multiple columns

From: Yosub Jung <yosubjung_at_berkeley.edu>
Date: Tue, 19 Apr 2011 20:05:26 -0700


Hello,

I have a table that has 2000 rows and 8 columns. The headings of columns are: yearjel.code.1jel.code.2jel.code.3jel.code.4jel.code.5jel.code.6 jel.code.7.
Under each column, there are either numbers or blank spaces corresponding to the given year.
For instance, my 10th row is:1019838242824382609170 I want to count how many times each code appears in total and how many times it appears in each year.
I don't think I can use table function. What can I do?

Sincerely,
Yosub Jung.

        [[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. Received on Wed 20 Apr 2011 - 06:14:16 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 20 Apr 2011 - 07:20:35 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive