Learn R Programming

dMod (version 0.3.1)

strelide: Elide character vector

Description

Elide character vector

Usage

strelide(string, width, where = "right", force = FALSE)

Arguments

string
String subject to eliding
width
Width including eliding ... of return string
where
Eliding can happen at 'left', 'middel', or 'right'. Defaults to 'right'.
force
Elide, even is is shorter than . Default to 'FALSE'.

Value

Elided string of length .

Details

Elide a string to . Eliding can happen at 'left', 'middle', or 'right'. #' If forcing = FALSE, which is the default, strings shorten than are returend unaltered; forcing = TRUE inserts eliding symbols (...) in any case.