Arguments
strings
Character strings to be shortened.
maxLength
Maximum length (number of characters) in the strings to be retained. See details for when the returned
strings can exceed this length.
minLength
Minimum length of the returned strings. See details.
split
Character string giving the split at which the strings can be truncated. This can be a literal string or a
regular expression (if the latter, fixed
below must be set to FALSE
).
fixed
Logical: should split
be interpreted as a literal specification (TRUE
) or as a regular
expression (FALSE
)?
ellipsis
Character string that will be appended to every shorten string, to indicate that the string has been
shortened.
countEllipsisInLength
Logical: should the length of the ellipsis count toward the minimum and maximum length?