Learn R Programming

MantaID (version 1.0.4)

mi_split_str: Split the string into individual characters and complete the character vector to the maximum length.

Description

Split the string into individual characters and complete the character vector to the maximum length.

Usage

mi_split_str(str, pad_len)

Value

Splited character vector.

Arguments

str

The string to be splited.

pad_len

The length of longest ID, i.e. the maxlength.

Examples

Run this code
string_test <- "Good Job"
length <- 15
mi_split_str(string_test, length)

Run the code above in your browser using DataLab