Having a data.frame like this:
data.frame(id = c(1,2,3), stock = c(3,1,4), bill = c(1,0,1), bear = c(3,2,5))
How is it possible to sum all columns expect id column and keep the first two columns which have higher frequency.
Example of expected output
data.frame(id = c(1,2,3), stock = c(3,1,4), bear = c(3,2,5))