Learn R Programming

IFC (version 0.1.1)

trunc_string: String Truncation

Description

Truncs character strings

Usage

trunc_string(x, n = 22)

Arguments

x

a string

n

desired length

Details

x will be truncated according to 'n' parameter. If x is longer than n '...' are appended.