Learn R Programming

rrepast (version 0.8.0)

col.sum: col.sum

Description

Sum all columns but one (pset) of a data frame

Usage

col.sum(d, skip = c())

Arguments

d

The data frame

skip

The columns which should not be included in the sum

Value

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