pt_chng_calc: Add change or difference columns to pivot table

View source: R/pivot_tables.R

pt_chng_calcR Documentation

Add change or difference columns to pivot table

Description

Adds change or difference in year columns to pivot table, summing total difference/change columns and recalculating/rounding percentage columns

Usage

pt_chng_calc(pt, colname, proj, current, adpt = NULL)

Arguments

pt

Pivot table to add change or difference columns to, created by pivottabler::PivotTable$new()

colname

Name of change or difference column

proj

Name of projected year column

current

Name of current year column

adpt

Name of adapted budget column; default NULL. Used to provide additional information to Departments for Departmental pivot tables

Value

Pivot table with change or difference column addded to it


dpowerstp/tpbudget documentation built on June 3, 2022, 1:41 a.m.