Skip to content
Prev 346101 / 398503 Next

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

No it doesn't ...
consider:

test <- data.frame(first=c(1,2), second=c(3,4))
test
  first second
1     1      3
2     2      4

sum(test$second)
[1] 7
On Nov 30, 2014, at 3:48 PM, Muhuri, Pradip (SAMHSA/CBHSQ) <Pradip.Muhuri at samhsa.hhs.gov> wrote: