sum_last_column: Compute sum of one column of a data frame by the values of...

View source: R/sum_last_column.R

sum_last_columnR Documentation

Compute sum of one column of a data frame by the values of the other columns in the data frame

Description

This is a general function that computes the sum of the last (rightmost) column of a data frame indexed by the combinations of values of all of the preding columns of that data frame.

Usage

sum_last_column(indata)

Arguments

indata

data frame. last (rightmost) column must be numeric.

Value

a data frame with same names as indata for which the last column is the computed sum of values in the last column of indata

Author(s)

Sara Hertog


markalava/ccmppWPP documentation built on April 21, 2022, 12:36 a.m.