Re: [R] Adding labels to ColSums

2014-10-29 Thread PIKAL Petr
iginal Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Muhuri, Pradip (SAMHSA/CBHSQ) > Sent: Tuesday, October 28, 2014 4:44 PM > To: R help > Subject: [R] Adding labels to ColSums > > Hello, > > I was trying to a

[R] Adding labels to ColSums

2014-10-28 Thread Muhuri, Pradip (SAMHSA/CBHSQ)
Hello, I was trying to add labels to the colSums of the "integers" variable corresponding to a "factor". Below are the warning message and the reproducible code. How would I tweak the code to replace the "NA" with the "Total" in the output? Your advice toward resolving the issue would be