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 totang...@gmail.com wrote: there is

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 ccqu...@gmail.com wrote: Hello, I have a

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 waldi...@gmail.com wrote: Hi help-list I try to better explain my problem. My problem is below.

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 baptiste.aug...@googlemail.com wrote: Dear

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

2010-08-21 Thread kees duineveld
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, baptiste On 21 August 2010 13:35, kees duineveld kees.duinev

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

2010-08-21 Thread kees duineveld
, kees duineveld kees.duinev...@gmail.com wrote: Now I understand. You need the name which png() does not return. So I think you need to do (untested, I am struggling with the cat()): makePlot = function(p, name=Rplot%03d, width=300) { real.name.png = path.expand(paste(name,'.png'sep

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 jdnew...@dcn.davis.ca.us wrote: I use Rgui and copy/paste special windows metafile. Roslina Zakaria zrosl...@yahoo.com