prioritize_level: Arrange unique 'level' values in default order of 'priority'

View source: R/prioritize.R

prioritize_levelR Documentation

Arrange unique level values in default order of priority

Description

Arrange unique level values in default order of priority

Usage

prioritize_level(data)

Arguments

data

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

Value

A character vector of the default level priority per loan.

See Also

Other helpers: crucial_lbk()

Examples

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

r2dii.match documentation built on June 22, 2024, 9:38 a.m.