Re: [R] sum row and col

2011-11-23 Thread J Toll
On Wed, Nov 23, 2011 at 10:17 AM, aa99 wrote: >  hey ; > > i would like to sum the following table by row and col. Appreciate your > help. ?rowSums ?colSums HTH James __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help P

[R] sum row and col

2011-11-23 Thread aa99
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 UpW