strelide {dMod}R Documentation

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 <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


[Package dMod version 1.0.2 Index]