Re: [R] How to separate the string?

2009-07-08 Thread Hemavathi Ramulu
Hi everyone, Thanks alot. Its work with help of you all. regards, Hema On Tue, Jul 7, 2009 at 5:00 PM, Petr PIKAL petr.pi...@precheza.cz wrote: Hi If you have data frame like this test=data.frame(x=c(abcd, abc, abcde)) than strsplit(as.matrix(test), ) makes a list with splitted

[R] How to separate the string?

2009-07-07 Thread Hemavathi Ramulu
Hi everyone, Hi want to separate the string(column1) for example column1 column2 column3 column4 column5 column6 bear b e a r cat c a t tigert i g e r I know how to

Re: [R] How to separate the string?

2009-07-07 Thread milton ruser
hi hema may be strsplit can help on the job. bests. milton On Tue, Jul 7, 2009 at 3:54 AM, Hemavathi Ramulu hema.ram...@gmail.comwrote: Hi everyone, Hi want to separate the string(column1) for example column1 column2 column3 column4 column5 column6 bear b e

Re: [R] How to separate the string?

2009-07-07 Thread Hemavathi Ramulu
Hi Petr, The data in text file and not csv format. The word separate which I mean in this content is like split/separate the string to each alphabet where each alphabet will be in different column. thanks alot. regards, Hema. On Tue, Jul 7, 2009 at 4:12 PM, Petr PIKAL petr.pi...@precheza.cz

Re: [R] How to separate the string?

2009-07-07 Thread Petr PIKAL
Hi If you have data frame like this test=data.frame(x=c(abcd, abc, abcde)) than strsplit(as.matrix(test), ) makes a list with splitted character vectors. If you want them in data frame you would need to combine vectors of unequal length. However I would try reading your text file with