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.

Value

character(1).

Note

Updated 2023-09-21.

See Also

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

Examples

truncateString("abcdefgi", n = 6L)

acidgenomics/AcidBase documentation built on Jan. 28, 2024, 2:59 a.m.