Learn R Programming

pacta.loanbook (version 0.1.0)

prioritize_level: Arrange unique level values in default order of priority

Description

Arrange unique level values in default order of priority

Usage

prioritize_level(data)

Value

A character vector of the default level priority per loan.

Arguments

data

A data frame, commonly the output of match_name().

See Also

Other matching functions: crucial_lbk(), match_name(), prioritize()

Examples

Run this code
matched <- tibble::tibble(
  level = c(
    "intermediate_parent_1",
    "direct_loantaker",
    "direct_loantaker",
    "direct_loantaker",
    "ultimate_parent",
    "intermediate_parent_2"
  )
)
prioritize_level(matched)

Run the code above in your browser using DataLab