Re: [R] Converting a .txt file into a matrix

2010-04-13 Thread Steve Lianoglou
Hi, On Tue, Apr 13, 2010 at 12:37 PM, cobbler_squad wrote: > > I need to convert foo.txt file into as.matrix > .txt file is a single column of numbers > (i.e. > -0.303904 > -0.889965 > -0.0270313 > -0.387125 > 0.189837 > -0.14858 > -0.651178 > -0.162632 > 0.449309 > ) > > and I need to find out t

[R] Converting a .txt file into a matrix

2010-04-13 Thread cobbler_squad
I need to convert foo.txt file into as.matrix .txt file is a single column of numbers (i.e. -0.303904 -0.889965 -0.0270313 -0.387125 0.189837 -0.14858 -0.651178 -0.162632 0.449309 ) and I need to find out the correct syntax to read in this table as.matrix I tried as.matrix(rea