categorize_op_funds: Categorize operating funds

View source: R/funds.R

categorize_op_fundsR Documentation

Categorize operating funds

Description

Appends a fund category column based on an existent fund name column.

Usage

categorize_op_funds(
  df,
  fund_col = "Fund Name",
  cat_col = "Fund Category",
  after = NULL
)

Arguments

df

A dataframe, has a fund name column.

fund_col

A string, name of the column to with fund names to order, defaults to "Fund Category".

cat_col

A string, name to assign to the column of fund categories to be appended. Defaults to "Fund Category".

after

A string, name of a fund to tack on at the end of the factor (usually "Total").

Value

A dataframe with col converted to factor.

Author(s)

Lillian Nguyen


baltimorebudget/bbmR documentation built on Aug. 28, 2023, 6:32 p.m.