strelide: Elide character vector

Description Usage Arguments Details Value Author(s)

View source: R/strings.R

Description

Elide character vector

Usage

1
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 <string> is shorter than <width>. Default to 'FALSE'.

Details

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

Value

Elided string of length <width>.

Author(s)

Wolfgang Mader, Wolfgang.Mader@fdm.uni-freiburg.de


dMod documentation built on Jan. 27, 2021, 1:07 a.m.