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)) Kees On Wed, Mar 7, 2012 at 3:44 PM, Jie Tang wrote: > there is something w

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

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 a nasty loop tha

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

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