[R] run time function for R scripts?
ehudco.list at gmail.com
Tue Nov 25 20:34:21 CET 2008
You could try
system.time( expr )
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?
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help