Skip to contents

Highest APR first. From the Managing debt chapter.

Usage

order_avalanche(debts)

Arguments

debts

A data frame with a numeric apr column.

Value

debts, reordered by apr from highest to lowest.

Examples

debts <- data.frame(
  name = c("Card A", "Card B", "Card C"),
  balance = c(1000, 5000, 2000),
  apr = c(0.18, 0.24, 0.15)
)
order_avalanche(debts)
#>     name balance  apr
#> 2 Card B    5000 0.24
#> 1 Card A    1000 0.18
#> 3 Card C    2000 0.15