Please help me with naive question (already googled, and tried a lot of variations, but failed): How save files with the variable in the file name for write.table in R? Scri
You can use paste to do this.
paste
Try the following:
write.table(utms, file=paste(x, ".mean", sep=""))
paste concatenates character vectors. See ?paste for more details.
?paste