search for: newsystime

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

2012 Jul 04
3
How to use Sys.time() while writing a csv file name
Dear R helpers, I am using Beta distribution to generate the random no.s (recovery rates in my example). However, 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 =