?addmargins
Peter Alspach
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Georg Ehret
> Sent: Thursday, 25 October 2007 9:19 a.m.
> To: r-help
> Subject: [R] adding total row/column to table-command
>
> Dear R,
>I am often adding a total rows
yes, addmargins()
x = matrix(1:16, nc=4)
addmargins(x)
b
On Oct 24, 2007, at 4:19 PM, Georg Ehret wrote:
> Dear R,
>I am often adding a total rows or column (sum over all rows or
> columns)
> when using table(data$1,data$2)... I do this now by adding the rows/
> columns
> and rbind() or
2 matches
Mail list logo