Re: [R] how to read a file containing a series filename

2012-03-07 Thread kees duineveld
Hi Jie, Are you looking for this construction? mydata <- apply(c("H20100902.TXT", "H20100903.TXT" ,"H20100904.TXT" ,"H20100905.TXT", "H20100906.TXT", "H20100907.TXT","H20100908.TXT"),function(x) scan(x, other options)) Ke

Re: [R] how to change or copy to another the names of models

2012-03-02 Thread kees duineveld
Hi Waldir I think this is easier via an lappy() lapply(1:30, function(x) mlp(...your settings here, including size=x...) ) Regards, Kees On Fri, Mar 2, 2012 at 2:36 PM, Waldir de Carvalho Junior wrote: > Hi help-list > I try to better explain my problem. > My problem is below. For e

Re: [R] speed up merge

2012-03-02 Thread kees duineveld
Hi Ben, It seems you merge a matrix and a vector. As far as I understand the first thing merge does is convert these to data.frame. Is it possible to make the preceding steps give data frames? Regards, Kees On Fri, Mar 2, 2012 at 11:24 AM, Ben quant wrote: > > Hello, > > I have

Re: [R] R-level expansion of Rplot%03d.png

2010-08-21 Thread kees duineveld
png" list.files(patt=".png") #[1] "Rplot001.png" sessionInfo() R version 2.11.1 (2010-05-31) i386-apple-darwin9.8.0 locale: [1] en_GB.UTF-8/en_GB.UTF-8/C/C/en_GB.UTF-8/en_GB.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base O

Re: [R] R-level expansion of Rplot%03d.png

2010-08-21 Thread kees duineveld
o convert Rplot%03d to, say, Rplot001. I am assuming that it is implemented internally by looking at the files in the current directory with some regular expression search, and incrementing the end number as needed. I wonder if there's a high level function to perform this task. Best, baptist

Re: [R] R-level expansion of Rplot%03d.png

2010-08-21 Thread kees duineveld
Not sure what you want. Plot does that automatically. It seems to use path.expand() to make the %03d expansion. Not that path.expand() is documented to do this, but it seem to work. Kees On Sat, 21 Aug 2010 13:04:54 +0200, baptiste auguie wrote: Dear list, I'm using the brew pa

Re: [R] which one give clear picture-pdf, jpg or tiff?

2010-08-20 Thread kees duineveld
So do I. You can even convert these to MS graph format and edit some. It is sharp, because this is also vector format. On Fri, 20 Aug 2010 07:58:01 +0200, Jeff Newmiller wrote: I use Rgui and copy/paste special windows metafile. "Roslina Zakaria" wrote: Hi, I need some opinion.� I wo

Re: [R] question about running out of memory on R -- memory.limit change in R 2.6.0?

2007-11-07 Thread kees
Earl, Reported memory sizes work ok on Vista 64. If I ask for 3.5M it will give it, even though I have only 2Mb of RAM. It devaults to 2Mb as expected. Op Tue, 06 Nov 2007 19:38:07 +0100 schreef Earl F. Glynn <[EMAIL PROTECTED]>: > "jim holtman" <[EMAIL PROTECTED]> wrote in message > news:[E

Re: [R] Partial aggregate on sorted data

2007-10-24 Thread kees
Yves, why not: aggregate(myDataframe$TargetValue,list(SomeFactor = myDataframe$SomeFactor),function(x) mean(x[x>quantile(x,.66)])) Op Wed, 24 Oct 2007 15:30:10 +0200 schreef Yves Moisan <[EMAIL PROTECTED]>: > > Hi All, > > I'm looking for ways to compute aggregate statistics (with the aggre

Re: [R] Import from excel 2007

2007-10-17 Thread kees
For me, it works. That is to say, not the simple way, which gave the error: odbcConnectExcel("C:\\Users\\Kees\\Desktop\\Map1.xlsx") But it does when you ask the correct driver odbcDriverConnect("DRIVER=Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb);DBQ=C:\\Users\\Kees