Re: [R] Concatenate variables and quoted text for output filenames

2008-04-29 Thread Wolfgang Huber
29/04/2008 17:04 trhermes a écrit > I am outputting some graphs from SpatStat using a for loop. I want the png > files to include the i and j from the nested loops in their names. For > example, I want the file names to look like "i-j_plot.png". The code is > below: > > ma <- levels(marks(X)) >

[R] Concatenate variables and quoted text for output filenames

2008-04-29 Thread trhermes
I am outputting some graphs from SpatStat using a for loop. I want the png files to include the i and j from the nested loops in their names. For example, I want the file names to look like "i-j_plot.png". The code is below: ma <- levels(marks(X)) n <- length(ma) for(i in 1:n) for(j in 1: