add_totals_col function

Append a totals column to a data.frame.