[R] re ad.table prn file

2009-02-23 Thread canadiangirl19
Dear Forum, I´ve imported a prn file with read.table (file(E:/test.prn),sep=\t,skip=3). My problem is now, that my file has a complicated structure: It is not tabstop seperated, it looks like that: JEAR JAN FEB MAR APR 1938154 912 19396 71014

Re: [R] re ad.table prn file

2009-02-23 Thread Philipp Pagel
On Mon, Feb 23, 2009 at 05:18:28AM -0800, canadiangirl19 wrote: My problem is now, that my file has a complicated structure: It is not tabstop seperated, it looks like that: JEAR JAN FEB MAR APR 1938154 912 19396 71014 19409 If there

Re: [R] re ad.table prn file

2009-02-23 Thread canadiangirl19
I´ve tried with: write.fwf(test,file=E:/test.prn,widths=6), but get the error: Fehler in write.table(t(as.matrix(colnamesMy)), file = file, append = append, : unbenutzte(s) Argument(e) (widths = 6) My matrix hast only one column (so it is a vector), and many rows, I want to seperate

Re: [R] re ad.table prn file

2009-02-23 Thread Philipp Pagel
On Mon, Feb 23, 2009 at 06:24:33AM -0800, canadiangirl19 wrote: write.fwf(test,file=E:/test.prn,widths=6), but get the error: Fehler in write.table(t(as.matrix(colnamesMy)), file = file, append = append, : unbenutzte(s) Argument(e) (widths = 6) My matrix hast only one column (so

Re: [R] re ad.table prn file

2009-02-23 Thread canadiangirl19
It works thanks a lot Philipp Pagel-5 wrote: On Mon, Feb 23, 2009 at 06:24:33AM -0800, canadiangirl19 wrote: write.fwf(test,file=E:/test.prn,widths=6), but get the error: Fehler in write.table(t(as.matrix(colnamesMy)), file = file, append = append, : unbenutzte(s)