Re: [R] accessing members of a data.frame

2009-12-28 Thread jim holtman
?read.csv On Mon, Dec 28, 2009 at 5:31 PM, Nick Torenvliet wrote: > I have the following code > > fileList <-list.files(path = ".", pattern = "[^a-z].txt$", all.files = > FALSE, full.names = FALSE, recursive = FALSE, ignore.case = FALSE) > for (x in 1:length(fileList)){ >fileLines <- data.fra

[R] accessing members of a data.frame

2009-12-28 Thread Nick Torenvliet
I have the following code fileList <-list.files(path = ".", pattern = "[^a-z].txt$", all.files = FALSE, full.names = FALSE, recursive = FALSE, ignore.case = FALSE) for (x in 1:length(fileList)){ fileLines <- data.frame(read.table(fileList[x])) print(string) } the lines of the file all hav