strsplit
R2026bSplit string or character vector at specified delimiter
Syntax
Description
specifies additional delimiter options using one or more name-value pair
arguments. For example,
C = strsplit(str,delimiter,Name=Value)strsplit(str,delimiter,CollapseDelimiters=false) treats
consecutive delimiters as separate delimiters.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Alternative Functionality
Update code that makes use of strsplit to use split instead. The default orientation for split is
by column. For example:
| Not Recommended | Recommended |
|---|---|
str = strsplit("1 2 3")str =
1×3 string array
"1" "2" "3" |
str = split("1 2 3")str =
3×1 string array
"1"
"2"
"3" |