col.sum {rrepast} | R Documentation |
Sum all columns but one (pset) of a data frame
col.sum(d, skip = c())
d |
The data frame |
skip |
The columns which should not be included in the sum |
The original data frame with a new column (sum) holding the sum