Learn R Programming

vcr (version 1.6.0)

str_splitter: split string every N characters

Description

split string every N characters

Usage

str_splitter(str, length)

Arguments

str

(character) a string

length

(integer) number of characters to split by

Examples

Run this code
if (FALSE) {
str = "XOVEWVJIEWNIGOIWENVOIWEWVWEW"
str_splitter(str, 5)
str_splitter(str, 5L)
}

Run the code above in your browser using DataLab