variable in the file name for write.table in R

后端 未结 3 2001
深忆病人
深忆病人 2020-12-30 15:59

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

3条回答
  •  天涯浪人
    2020-12-30 16:21

    You can use paste to do this.

    Try the following:

    write.table(utms, file=paste(x, ".mean", sep=""))
    

    paste concatenates character vectors. See ?paste for more details.

提交回复
热议问题