search for: nuomon

Displaying 1 result from an estimated 1 matches for "nuomon".

2007 Aug 04
3
using loops to create multiple images
...his is my loop that does not work... vars <- list (substitute (G01_01), substitute (G01_02), substitute (G01_03), substitute (G01_04)) results <- data.frame ('Variable Name'=rep (NA, length (vars)), check.names=FALSE) for (i in 1:length (vars)) { barplot(table(i),xlab=i,ylab="Nuomon?s") dev.copy(png, filename="/my/dir/barplot.i.png", height=600, width=600) dev.off() } questions: Is it possible to use the i somewhere _within_ a file name? (like it is possible in other programming or scripting languages?) Since I hate to type in all the variables (they go fro...