variable in the file name for write.table in R

后端 未结 3 2002
深忆病人
深忆病人 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条回答
  •  -上瘾入骨i
    2020-12-30 16:25

    You can use also the following for data frames:

    now<-format(Sys.time(), "%d-%m-%Y")
    csvFileName <- paste("Your_df_",now,".csv",sep="")
    write.csv(WKSH_Check, file=csvFileName) 
    

提交回复
热议问题