sep_budget: Separate budget columns Creates a number column and...

View source: R/data_prep.R

sep_budgetR Documentation

Separate budget columns Creates a number column and description column from standard Tyler Extract report column that's a combination of a number and description. E.g., Departments are contained in the "department" column and represented like 1000 Department Name; this creates a department_num column of 1000, and a 'department_desc" column of "Department Name."

Description

Separate budget columns Creates a number column and description column from standard Tyler Extract report column that's a combination of a number and description. E.g., Departments are contained in the "department" column and represented like 1000 Department Name; this creates a department_num column of 1000, and a 'department_desc" column of "Department Name."

Usage

sep_budget(df, colname)

Arguments

df

Minimally-processed Tyler Extract report dataframe

colname

String name of column with a numeric part and string part separated by a space

Value

Dataframe with original column, and column for number-part of original column and string part

Examples

{
c <- data.frame(sepcolumn = c("52 Cats", "35 Dogs", "42 Fish"))

sep_budget(c, "sepcolumn")
}


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