val2lvl: Translate values to levels

View source: R/xp_xtras.R

val2lvlR Documentation

Translate values to levels

Description

This is intended to be used as a convenience function in plotting where levels are set for some variable.

Usage

val2lvl(vals, lvl_tbl = NULL)

Arguments

vals

vector of values associated with levels in lvl_tbl

lvl_tbl

tibble of levels

Value

A vector of levels corresponding to the input vector.


xpose.xtras documentation built on Aug. 23, 2025, 9:07 a.m.