Learn R Programming

IFC (version 0.2.1)

trunc_string: String Truncation

Description

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