str_wrap_factor: Wrap strings without dropping factor levels

View source: R/chart_helpers.R

str_wrap_factorR Documentation

Wrap strings without dropping factor levels

Description

This function is a wrapper around stringr::str_wrap that ensures that factor levels are not dropped.

Usage

str_wrap_factor(x, ...)

Arguments

x

a factor

...

arguments to pass to stringr::str_wrap

Value

a factor


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