Message-ID: <41AC068C-FDDA-4A8E-9D18-00B5AE281265@eawag.ch>
Date: 2009-02-27T14:43:48Z
From: soeren.vogel at eawag.ch
Subject: cross tabulation: convert frequencies to percentages
Hello,
might be rather easy for R pros, but I've been searching to the dead
end to ...
twsource.area <- table(twsource, area, useNA="ifany")
gives me a nice cross tabulation of frequencies of two factors, but
now I want to convert to pecentages of those absolute values. In
addition I'd like an extra column and an extra row with absolute sums.
I know, Excel or the likes will produce it more easily, but how would
the procedure look like in R?
Thanks,
S?ren