I have several columns (literally) named A1, A2, A3, ... A50 in a data.table in R. Unfortunately, columns in my table are not arranged alphabetically.
I want to create a new column named sumA, which will contain A1 + A2 + ... + A50.
What's a simple (and not tedious) way of doing this?