Hello,
I have this problem regarding aggregating a table. For example, my table should look like this
| ID | books | toys | PCs |
| 1 | 564 | 354 | 184 |
| 1 | 454 | 794 | 174 |
| 2 | 564 | 373 | 194 |
| 2 | 54 | 397 | 134 |
| 3 | 644 | 361 | 764 |
except it is a lot bigger. Now, I need to do vertical sum and grouping by ID. The final table should look like this
| ID | books | toys | PCs |
| 1 | 1018 | 1148 | 358 |
| 2 | 618 | 770 | 328 |
| 3 | 644 | 361 | 764 |
This alone would be easy, but now comes the twist. I have many columns and they change quite often, so I would love some solution which uses a vector of column names or an option to sum all the columns irrespective of the column names. Is there such an option?
Thanks,
Bajtan