Command Reference : String and Date Function Reference
Create string vector from words of string list.
Syntax: @wsplit(str_list)
str_list: string
Return: svector
Returns an svector containing the elements of str_list.
If string list SS01 contains “A B C D E F”, then
svector s1 = @wsplit(ss01)
returns the svector S1, placing each word element of SS01 in a separate row, so that tow one of S1 contains “A”, row two contains “B”, etc.
The command
svector s2 = @wsplit("apples oranges pears")
creates a 3 element svector S2, with the rows containing “apples”, “orange”, and “pears”.
See also @sfill. See @wjoin for obtaining a string from an svector.