Re: [R] Read data in R

2010-08-24 Thread Prof Brian Ripley
On Tue, 24 Aug 2010, jim holtman wrote: I sounds as if your data is encode as UTF-8. You may need to specify the fileEncoding parameter on the read.table function. Not UTF-8 ... that's a BOM mark in UCS-2. We don't have the sessionInfo() output that we asked for and this is an area where

Re: [R] Read data in R

2010-08-23 Thread jim holtman
I sounds as if your data is encode as UTF-8. You may need to specify the fileEncoding parameter on the read.table function. On Mon, Aug 23, 2010 at 9:00 PM, Allie818 wrote: > > I have a txt file with column data separated by commas. > > Subject,Sessionblock,LotteryImg,SubjectResp,Pictime,Bidtime

Re: [R] Read data in R

2010-08-23 Thread Dennis Murphy
Hi: Here's one way, but there may be better options: de <- read.table(textConnection(" + Subject,Sessionblock,LotteryImg,SubjectResp,Pictime,Bidtime,Voltage,ForcedAns + 10816,Session1,75_C2.jpg,No,7095,9548,Mid,Yes + 10816,Session1,25_C1.jpg,No,16629,18130,Low,Yes + 10816,Session1,5_C1.jpg,No,232

[R] Read data in R

2010-08-23 Thread Allie818
I have a txt file with column data separated by commas. Subject,Sessionblock,LotteryImg,SubjectResp,Pictime,Bidtime,Voltage,ForcedAns 10816,Session1,75_C2.jpg,No,7095,9548,Mid,Yes 10816,Session1,25_C1.jpg,No,16629,18130,Low,Yes 10816,Session1,5_C1.jpg,No,23217,24276,Low,Yes 10816,Session1,75_C1.j