categorize_op_funds | R Documentation |
Appends a fund category column based on an existent fund name column.
categorize_op_funds(
df,
fund_col = "Fund Name",
cat_col = "Fund Category",
after = NULL
)
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"). |
A dataframe with col converted to factor.
Lillian Nguyen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.