Re: [R] selecting characters from a line of text

2007-06-12 Thread Vladimir Eremeev
Tim Holland wrote: Is there a way in R to select certain characters from a line of text? I have some data that is presently in a large number of text files, and I would like to be able to select elements of each text file (elements are always on the same line, in the same position) and

[R] selecting characters from a line of text

2007-06-11 Thread Tim Holland
Is there a way in R to select certain characters from a line of text? I have some data that is presently in a large number of text files, and I would like to be able to select elements of each text file (elements are always on the same line, in the same position) and organize them into a table.

Re: [R] selecting characters from a line of text

2007-06-11 Thread Stephen Tucker
Maybe substring() is what you're looking for? Some examples: substring(textstring,1,5) [1] texts substring(textstring,3) [1] xtstring substring(textstring,3,nchar(textstring)) [1] xtstring --- Tim Holland [EMAIL PROTECTED] wrote: Is there a way in R to select certain characters from a line