Skip to content

Instantly share code, notes, and snippets.

@mhkeller
Created October 29, 2012 17:48
sum columns with apply
apply(df[,c("col1","col2")], 1, sum)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment