str_abbrev: Shorten character string

View source: R/helpers.R

str_abbrevR Documentation

Shorten character string

Description

Shortens a character string to a specified length

Usage

str_abbrev(x, l_max = 10)

Arguments

x

character string to be shortened

l_max

maximal length of character string (numeric), default = 10

Examples

## Not run: str_abbrev('Hypertension', l_max = 6)

nrkoehler/xyzfuns documentation built on Nov. 12, 2024, 1:29 p.m.