Try this:

embed(scan(textConnection(x), sep = ","), 2)

On Wed, Feb 2, 2011 at 10:12 AM, Romildo Martins
<romildo.mart...@gmail.com>wrote:

> Hello,
>
>
> How to convert x into y?
>
> > x
> [1] "15, 23, 2, 21, 11, 5"
>
> > y
>     [,1] [,2]
> [1,]   15   23
> [2,]   23    2
> [3,]    2    21
> [4,]   21   11
> [5,]   11    5
>
>
> Thanks a lot!
>
> Romildo
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org 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.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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.

Reply via email to