my_abbreviate: Abbreviation by ellipsis

Description Usage Arguments Value Examples

View source: R/wiki_images.R

Description

Abbreviation by ellipsis

Usage

1
my_abbreviate(x, nc, replacement = "...")

Arguments

x

Character string to be abbreviated.

nc

Maximum number of characters of the result.

replacement

Replacement, defaults to "...".

Value

An abbreviated character string of maximum nc characters length.

Examples

1
my_abbreviate("Hello, World!", nc = 8)

alexanderbrenning/alexmisc documentation built on Jan. 7, 2022, 5:41 p.m.