run time function for R scripts?
You could try
system.time( expr )
EC
On Tue, Nov 25, 2008 at 9:22 PM, Brigid Mooney <bkmooney at gmail.com> wrote:
Hi All,
I was wondering if there was a function in R that would output the total run
time for various scripts.
For now I have the following workaround:
begTime <- Sys.time()
... the rest of the R script...
runTime <- Sys.time()-begTime
Is there another function that I don't know about that would return this
information in a more elegant manner?
Thanks!
[[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.