Skip to contents

Rank top 3 infrequent expenditure types

Usage

add_expenditure_type_infreq_rank(
  df,
  expenditure_infreq_types = c("cm_expenditure_infrequent_shelter",
    "cm_expenditure_infrequent_nfi", "cm_expenditure_infrequent_health",
    "cm_expenditure_infrequent_education", "cm_expenditure_infrequent_debt",
    "cm_expenditure_infrequent_other"),
  id_col = "uuid"
)

Arguments

df

A data frame.

expenditure_infreq_types

A character vector. The names of the columns that contain the amount of infrequent expenditures types.

id_col

The name of the column that contains the unique identifier.