Take the 2-minute tour ×

I'm using a program which reads txt files (E-prime) which I prepare in R. For some reason my files are unreadable. I can fix this by opening each file manually in excel and saving(no idea what this is doing). Any clue what is going on here? Is there any way to avoid this?

This is eg of the data

 Weight Nested      Procedure        Stimulus CorrectAnswer
   1              TrialProcedure    angrily             d
   1              TrialProcedure cuncectuen             s
   1              TrialProcedure       pont             s
   1              TrialProcedure   juggling             d
   1              TrialProcedure       spry             d
   1              TrialProcedure competency             d

This is how I'm writing the tables

write.table(y, file = paste("Day",a, " ",k, ".txt", sep=""), sep = "\t",row.names=FALSE)

Edit: I fixed the problem by setting write.table's quote parameter to FALSE


share|improve this question
Try saving with Excel to another file, and using any handy tool (Beyond Compare, Tortoise Merge, etc) to compare the two. Without more information though, I'm going to have to vote to close as too localized. –  Matthew Lundberg Apr 30 '13 at 3:57
Any error message as you open with E-prime? What do you mean by unreadable? –  flodel Apr 30 '13 at 3:58
I get factor error:Filename contains an invalid attribute. –  luke123 Apr 30 '13 at 5:22
erro number -999 (very generic probably not helpful) –  luke123 Apr 30 '13 at 5:23
So you are really saying this is NOT an Excel problem, rather just a problem with E-prime? Please remove the excel tag if that is the case. Furthermore, have you tried saving with commas? And isn't there some sort of support line for E-prime, whatever that is? –  BondedDust Apr 30 '13 at 6:21

Your Answer



Browse other questions tagged or ask your own question.