Try this:

 t(sapply(strsplit(gsub("a", "", ln), "(,)|(,0+)"), as.numeric))

On Fri, Sep 12, 2008 at 9:55 AM, Ajay ohri <[EMAIL PROTECTED]> wrote:

> Hi Henrique ,
>
> Thanks for this. An additional problem is that each row begins and ends
> with a "
>
> So when i try and copy and paste (94 rows) , it does not work with the
> last value within a row.
>
> Each row has some 50 x1,y1,0 values.
>
> How to modify the code for this?
>
> Regards,
>
> Ajay
>



-- 
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