Message-ID: <1322065056909-4100253.post@n4.nabble.com>
Date: 2011-11-23T16:17:36Z
From: aa99
Subject: sum row and col
hey ;
i would like to sum the following table by row and col. Appreciate your
help.
BrandName Segment Retail QSlod
Oral B Whitening 10 2
Colgate Sensitive 20 4
Colgate Sensitive 30 6
Oral B Whitening 40 8
Close Up Whitening 50 10
Oral B Whitening 60 12
Output :
BrandName Segment Retail QSlod Total
Oral B Whitening 10 2 Sum by Col.
Colgate Sensitive 20 4 Sum by Col.
Colgate Sensitive 30 6
Oral B Whitening 40 8
Close Up Whitening 50 10
Oral B Whitening 60 12
Sum by Row Sum by Row
--
View this message in context: http://r.789695.n4.nabble.com/sum-row-and-col-tp4100253p4100253.html
Sent from the R help mailing list archive at Nabble.com.