Skip to contents

Maximum String Length in Vector of Character

Usage

maxStringLength(x)

Arguments

x

vector of character

Value

integer representing the length of the longest string in x

Examples

maxStringLength(c("a", "ab", "abc", "x", "xy-z"))
#> [1] 4