Gregor GORJANC wrote:
Hello!

I am producing a set of images and I would like them to be sorted by names I give. I was able to produce my names and add integer to them. That is easy. But my problem lies in sort of file from this process:

figure_10.png
figure_11.png
figure_12.png
...
figure_1.png
figure_20.png

One simple solution for sortable file names is to add a large integer to your index i:


png(filename=paste("figure_", i + 1000, ".png", sep=""))

Thomas P.

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to