Skip to content
Prev 346100 / 398502 Next

R dplyr solution vs. Base R solution for the slect column total

Hi Boris,

That gives me the total for each of the 6 columns of the data frame. I want the column sum just for the last column.

Thanks,

Pradip Muhuri



-----Original Message-----
From: Boris Steipe [mailto:boris.steipe at utoronto.ca] 
Sent: Sunday, November 30, 2014 12:50 PM
To: Muhuri, Pradip (SAMHSA/CBHSQ)
Cc: r-help at r-project.org
Subject: Re: [R] R dplyr solution vs. Base R solution for the slect column total

try:

sum(test$count)


B.
On Nov 30, 2014, at 12:01 PM, Muhuri, Pradip (SAMHSA/CBHSQ) <Pradip.Muhuri at samhsa.hhs.gov> wrote: