truncateString: Truncate a string with ellipsis, if necessary

View source: R/truncateString.R

truncateStringR Documentation

Truncate a string with ellipsis, if necessary

Description

Truncate a string with ellipsis, if necessary

Usage

truncateString(x, n = 200L)

Arguments

x

character(1). Character string.

n

integer(1). Maximum number of characters. Function will truncate with "...", when applicable.

Note

Updated 2022-10-20.

See Also

  • https://stackoverflow.com/questions/46759358/

Examples

truncateString("abcdefgi", n = 6L)

acidgenomics/AcidBase documentation built on Nov. 29, 2022, 7:39 a.m.