[英]save rdata environment with timestamp
I am trying to loop a code every 24h to download and process data from a database that updates every day.我试图每 24 小时循环一次代码,以从每天更新的数据库中下载和处理数据。 I would like it to save automatically with the date.
我希望它与日期一起自动保存。
This is the line I'm using to save the environment.这是我用来拯救环境的路线。
save.image("~/Bus data/leeds bus live/timetable data/itm_gtfs/yorkshire.data.RData")
How can I modify it so it captures the current date as well?如何修改它以便它也捕获当前日期?
Thanks谢谢
you can paste() them together.你可以将它们粘贴()在一起。 I also prefer myself to set wd a command before having to repeat the path
我也更喜欢自己在必须重复路径之前设置 wd 命令
setwd("~/Bus data/leeds bus live/timetable data/itm_gtfs")
save.image(paste(Sys.date(),"yorkshire.data.RData", sep = "."))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.