If it really is of class "table" (or is an array) or you convert it to such you can use addmargins. You may need to read ?addmargins carefully.
On 10/8/07, Alessandra Marmo <[EMAIL PROTECTED]> wrote: > Hello > I need to print table width "colum sum" like > X V1 V2 TOT > A 2 3 5 > B 1 6 7 > C 4 6 10 > > how i can do it by table function? > > Thanks > > Alessandra > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.