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