Re: [R] For loop on data frame

2013-01-31 Thread Jeff Newmiller
Your example is not reproducible. See http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example I would guess you have tabs at the ends of your lines in the input file. This is a fairly common problem when you muck with data in Excel. To find these problems yourself,

[R] For loop on data frame

2013-01-31 Thread Esam Tolba
I am a beginner in R. I wrote a function to read a data frame from a file and then split it into certain number of data frames and write each one of them in a separate txt file. the function is working perfectly for the first four files the it gives me files contain one column of NA values. split