Skip to content
Prev 170012 / 398506 Next

How to split a character vector into 3 vectors

This splits them into a 3 column matrix:
[,1] [,2] [,3]
[1,] "A"  "S"  "K"
[2,] "D"  "G"  "H"
[3,] "A"  "S"  "G"
[4,] "A"  "U"  "J"
[5,] "U"  "R"  "T"

z[,1], z[,2] and z[,3] are your vectors.
On Tue, Feb 10, 2009 at 1:50 PM, kayj <kjaja27 at yahoo.com> wrote: