file_w_date | R Documentation |
used to paste strings together for file location. Primary usage is for long directory names that you can store in a string, as well as for automatically appending the date to a file name for intermittenly run reports/etc.
file_w_date(dir, file, ext, date = T)
dir |
path to directory |
file |
filename |
ext |
extension type |
date |
logical for Y/N appended date |
Character String with the path to filename
file_w_date("C:/Documents", "Test", "csv")
data(mtcars)
DataEx = head(mtcars)
write.csv(DataEx, file_w_date("C:/Documents", "Test", "csv"))
write.csv(DataEx, file_w_date("C:/Documents", "Test", "csv", date = F))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.