[R] tables

Erin Hodgess erinm.hodgess at gmail.com
Mon Jun 21 20:46:41 CEST 2010


Dear R People:

I have generated the following table:

> table(zza$DEATH,zza$GENDER)

               F   M
  2009-04-21   0   1
  2009-04-22   4   2
  2009-04-24   6   0
  2009-04-25   1   3
  2009-04-26   2   0
  2009-04-28   3   0
  2009-04-29   2   2

However, instead of total counts in the F and M columns, I would like percents.

How would I do this, please?

thanks,
Erin



-- 
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com



More information about the R-help mailing list