Learn R Programming

rchallenge (version 1.3.4)

str_rank: String displayed for the rank.

Description

Concatenates the rank number with symbols indicating the progress since the last change.

Usage

str_rank(
  r,
  r_d,
  symb = list(const = icon("fa-arrow-right"), up = icon("fa-arrow-up"), down =
    icon("fa-arrow-down"))
)

Arguments

r

integer. rank

r_d

integer. rank difference

symb

named list of characters. symbols used for the progress in ranking: no change (const), ascent (up) and descent (down)