Learn R Programming

rrepast (version 0.8.0)

dfsumcol: dfsumcol

Description

Sum data frame columns but tho

Usage

dfsumcol(d, lst = c(), invert = FALSE)

Arguments

d

The data frame

lst

Skip columns included. Sum columns NOT included

invert

Sum only the columns included in lst

Value

The original data frame with a new column (sum) holding the sum