Displaying 1 result from an estimated 1 matches for "ddn2".
Did you mean:
ddn
2012 Jan 25
1
cat, and printing the last separator
Hi All,
I have the following command:
cat(rbind(table(gen$sex, gen$ddn2)[1,],round(table(gen$sex, gen$ddn2)[1,]/apply(table(gen$sex, gen$ddn2),2,sum) * 100)), sep = c(' (','%)\n'), file = '')
3 (20%)
17 (30%)
15 (31
i.e. it does NOT print the last separator, which is something that bugs me a bit, given that fact I'm trying to have some cop...