[R] vector in filename

[Ricardo Rodriguez] Your XEN ICT Team webmaster at xen.net
Fri Apr 18 16:35:12 CEST 2008


Mark,

Mark Leeds wrote:
> Oh, I'm sorry that didn't work. If you have time, can you resend it to me if
> you still have it ( I don't ) cause I'd like to see why. Thanks.

My fault! It does work! I've tried it this morning quickly, before 
leaving my SOHO, and it seems I was making any mistake. It does 
perfectly works as here...

x=1
y=1
max=10
myfiles <- paste("foo", x:max, ".png", sep="")
while (x =< max)
    {
        png(file=myfiles[x], pointsize = 20, width = 600, height = 600, 
units = "px", bg="#eaedd5")
        plot(x,y)
        dev.off()  
        x=x+1
        y=y+1
    }

Thank you so much for your help and sorry for the noise!

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your XEN ICT Team



More information about the R-help mailing list