Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 212012

How to set a code to automatically add today's date to a filename?

$
0
0

Every day I have to change a date "YYMMDD" manually then run a code. I would like to find a way to make this change automatically. So I can just run the code without having to manually enter today's date.

In the example below I try to read in the file on june 12th, 2017.

task<- read.csv("\pattern~file_170612.txt", sep = "", header=F, stringsAsFactors = F)

Viewing all articles
Browse latest Browse all 212012

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>