I feel a bit embarrassed as I am trying to add two columns in R to get the product.
I have tried
sum(col1,col2)
but this returns
Try this for creating a column3 as a sum of column1 + column 2 in a table
tablename$column3=rowSums(cbind(tablename$column1,tablename$column2))