Running functions in R multiple times during benchmarking

Viewed 3485

I am trying to measure the computation time of a function in R using system.time(). I want to run the function a few hundred times to get an average but I don't want to copy and paste that many times. Is there an easier way to do that?

3 Answers
Related