[R] timing a function

Marc Schwartz MSchwartz at MedAnalytics.com
Sat Mar 20 19:36:21 CET 2004


On Sat, 2004-03-20 at 12:11, Fred J. wrote:
> Hello
> is there a way to time how long it takes to run a code
> in R. somthing like tic toc in matlab as such?
> help.search("timing") put out nothing.

See ?system.time

> and while I got you, debugging the code, is there a
> step through and the rest of the debugging tools
> working with ESS.

See section 6 (R and Emacs) in the main R FAQ:

http://cran.r-project.org/doc/FAQ/R-FAQ.html#R%20and%20Emacs

HTH,

Marc Schwartz




More information about the R-help mailing list