fct_case_when: Case when that orders the factors as you order the case when

View source: R/chart_helpers.R

fct_case_whenR Documentation

Case when that orders the factors as you order the case when

Description

This function is a wrapper around dplyr::case_when that ensures that factor levels are ordered in the same way as the case_when statement.

Usage

fct_case_when(...)

Arguments

...

a series of formulas to pass to dplyr::case_when

Value

a factor


grattan/grattantheme documentation built on April 11, 2025, 8:56 p.m.