Re: [R] re ad.table() and setwd() in unix batch mode

2009-06-19 Thread Uwe Ligges
tbigdeli wrote: My apologies for being overly brief before.. I submit an R script to batch mode as follows: a list of files (object = 'files'). In each iteration, the next file is read, alterations made, working directory changed, and output file written out. R will take an inordinate amoun

Re: [R] re ad.table() and setwd() in unix batch mode

2009-06-19 Thread tbigdeli
My apologies for being overly brief before.. I submit an R script to batch mode as follows: a list of files (object = 'files'). In each iteration, the next file is read, alterations made, working directory changed, and output file written out. R will take an inordinate amount of time processin

Re: [R] re ad.table() and setwd() in unix batch mode

2009-06-19 Thread Uwe Ligges
tbigdeli wrote: I continually receive the error Error in file(file, "r") : cannot open the connection, when running in batch mode, but not when inputing directly into R. Have you given the full path name? If not, do you start both R instances from the same working directory? Otherwise, do

[R] re ad.table() and setwd() in unix batch mode

2009-06-19 Thread tbigdeli
I continually receive the error Error in file(file, "r") : cannot open the connection, when running in batch mode, but not when inputing directly into R. Any ideas? Thanks! TB -- View this message in context: http://www.nabble.com/read.table%28%29-and-setwd%28%29-in-unix-batch-mode-tp241070

Re: [R] re ad.table, row.names arg

2009-06-05 Thread Adrian Dusa
Markus Loecher-4 wrote: > > Dear R users, > I had somehow expected that read.table() would treat the column specified > by > the row.names argument as of class character. That seems to be the only > sensible class allowed for a column containing row names. However, that > does > not seem to be

[R] re ad.table

2009-04-06 Thread calpeda
Hi, I ve been searching a lot in internet..but I can t find a solution Attached, you find a file. I need for each (Materiale, tpdv, UM) to find sum,avg and count My idea was to aggregate for the 3 parameters ..but I don t know how to get the numeric value (SUM,COUNT,AVG) I need. Can you help me? t

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, : >> unbenutzt

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 colum

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 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 > >

[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 1940999

Re: [R] re ad.table

2008-12-19 Thread Simon Pickett
probably best just to change each variable one by one to the correct classification after you have read the data frame in. variable<-as.character(variable) - Original Message - From: "threshold" To: Sent: Friday, December 19, 2008 12:35 PM Subject: [R] re ad.table

Re: [R] re ad.table

2008-12-19 Thread jim holtman
Seems to work for me: > x <- read.table(textConnection("a b c d e f + SPX LSZ 100 C 0 34.4 + SPX LSZ 100 P 0 1.3 + SPX LSZ 105 C 0 30.3 + SPX LSZ 105 P 0 1.85 + SPX LSZ

[R] re ad.table

2008-12-19 Thread threshold
Hi , I want to use the read.table to the following example 'data.txt' format: a b c d e f SPX LSZ 100 C 0 34.4 SPX LSZ 100 P 0 1.3 SPX LSZ 105 C 0 30.3 SPX LSZ 105 P 0 1.85 SPX

Re: [R] re ad.table problem

2008-07-10 Thread Schleuh
did you remark you obtain the half of rows (636615*2=1273230) ; maybe the columns aren't good sliced phoebe kong wrote: > > Dear all, > > I have problem when reading a table into R. The total row of read in table > has is much less than the original saved table. > > I built a 1,273,230 by 6 da