How to convert the strings into matrix ?
(strings <- strsplit(c("1 2 3", "1 2", "1 3 4 5"), " "))[[1]][1] "1" "2" "3"
[[2]][1] "1" "2"
[[3]][1] "1" "3" "4" "5"
_________________________________________________________________
Easily edit your photos like a pro with Photo Gallery.
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.