[R] Help with tables in R

Barry Lambert barrylambert at gmail.com
Thu Jul 3 04:33:12 CEST 2014

I am a new convert to R (from SAS).  I am a research scientist and most of
use of SAS was in data analysis.  Recently, I have been wanting to use R to
create a simple, reliable way to summarize a dataset of student demographics
for a university.
The spreadsheet has a row for every student registered at the university for
each term since fall 2010 with the following information about each student
in columns:
Columns are the following: Term, College, Program, Campus, Gender,
Ethnicity, Age.

I have created summary tables in Excel using if/then type formulas to select
data and count the number of female students in program A at location 3,

I have written some R code to create some figures that generally meet my
I would like to find a way to have R populate some tables with this type of

An example of my excel sheets are attached.

Any suggestions will be appreciated.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example table.pdf
Type: application/pdf
Size: 37441 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20140702/fd5597cb/attachment.pdf>

More information about the R-help mailing list