Last data update: 2014.03.03

R: Shorten a string if it is longer than a limit
shortenStringR Documentation

Shorten a string if it is longer than a limit

Description

Shorten a string if it is longer than a limit

Usage

  shortenString(text, limit, cutIndication = "...")

Arguments

text

The string to shorten.

limit

The length limit.

cutIndication

A string to append to the string if shortened.

Value

The shortened string.

Results