search for: recovery_rates_at_

Displaying 1 result from an estimated 1 matches for "recovery_rates_at_".

2012 Jul 04
3
How to use Sys.time() while writing a csv file name
..., each time I need to save these random no.s in a csv format. To distinguish different csv files, one way I thought was use of Sys.time in the file name. My code is as follows - # My code rr = rbeta(25, 6.14, 8.12) lgd = 1 - mean(rr) write.csv(data.frame(recovery_rates = rr), file = paste("recovery_rates_at_", Sys.time(), ".csv", sep = ""), row.names = FALSE) However, I get following error - Error in file(file, ifelse(append, "a", "w")) :   cannot open the connection In addition: Warning message: In file(file, ifelse(append, "a", "w"))...