strip_wrap_var: Apply string wrapping to variables (character or factor)
Description
A utility function that applies string wrapping to both character and factor
variables, preserving factor structure while wrapping the labels.
Usage
strip_wrap_var(x, width = Inf)
Value
Modified variable with wrapped text
Arguments
- x
Variable to wrap (character or factor)
- width
Maximum width for wrapping