powered by
Split the string into individual characters and complete the character vector to the maximum length.
mi_split_str(str, pad_len)
Splited character vector.
The string to be splited.
The length of longest ID, i.e. the maxlength.
string_test <- "Good Job" length <- 15 mi_split_str(string_test, length)
Run the code above in your browser using DataLab