Skip to contents

split string every N characters

Usage

str_splitter(str, length)

Arguments

str

(character) a string

length

(integer) number of characters to split by

Examples

if (FALSE) { # \dontrun{
str = "XOVEWVJIEWNIGOIWENVOIWEWVWEW"
str_splitter(str, 5)
str_splitter(str, 5L)
} # }