budget_group: Group Budget Data

View source: R/data_prep.R

budget_groupR Documentation

Group Budget Data

Description

Groups Tyler budget extract report budget data by provided set of columns, summing year columns in the dataset. Year columns in the data should have standard names that will be picked up by tpbudget::pull_year_cols()

Usage

budget_group(df, colsgrp)

Arguments

df

Tyler Extract Report budget dataset

colsgrp

String vector of columns to group the Tyler Extract Report by. For columns that have been separated by tpbudget::sep_budget, only need to identify the basename of the column. For instance, if there are columns for accountnum, accountnum_desc, and accountnum_num, only need to provide "accountnum" to still keep the "accountnum_desc" and "accountnum_num" columns in the group. Note that if there are "change" or "difference" year-columns in the dataset, percentages will still be summed and these should be recalculated

Value

A dataframe grouped by the provided colsgroup vector, with year-columns summed by the grouped columns


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