Learn R Programming

PCpheno (version 1.28.0)

truncName: Truncate character strings

Description

Truncate character strings

Usage

truncName(x,n)

Arguments

x
Character string
n
Maximum length (in characters)

Value

Character string

Examples

Run this code
xx <- "Anticonstitutionnelement is a family name"
truncName(xx,5)

Run the code above in your browser using DataLab