Hi Dmitry,
Nothing is seriously wrong.
You want to set the fourth column name, so take column names THEN
the fourth element:
colnames(PiD)[4] - total
Thank you for providing a clear and simple reproducible example.
Sarah
On Fri, Apr 15, 2011 at 9:29 AM, Dmitry Berman ravenb...@gmail.com
Hi.
Have a look also at ?addmargins.
addmargins(table(fS,fF),c(1,2),FUN=list(total.row=sum,total.col=sum))
Andrija
On Fri, Apr 15, 2011 at 3:29 PM, Dmitry Berman ravenb...@gmail.com wrote:
Listers,
I have created a cross-tab matrix using the following code:
S -
Sorry, I've just reversed the names of dimensions :)
addmargins(table(fS,fF),c(1,2),FUN=list(total.col=sum,total.row=sum))
Andrija
On Fri, Apr 15, 2011 at 3:50 PM, andrija djurovic djandr...@gmail.comwrote:
Hi.
Have a look also at ?addmargins.
3 matches
Mail list logo