Re: [R] How to get the runtime as well as the result?

2009-12-11 Thread Uwe Ligges
Peng Yu wrote: On Thu, Dec 10, 2009 at 7:03 PM, Dirk Eddelbuettel e...@debian.org wrote: On 10 December 2009 at 18:12, Peng Yu wrote: | If I use system.time() to measure the runtime of an expression, I will | not get the result. Is there a way to measure the runtime and get the | result as

[R] How to get the runtime as well as the result?

2009-12-10 Thread Peng Yu
If I use system.time() to measure the runtime of an expression, I will not get the result. Is there a way to measure the runtime and get the result as well? __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] How to get the runtime as well as the result?

2009-12-10 Thread Dirk Eddelbuettel
On 10 December 2009 at 18:12, Peng Yu wrote: | If I use system.time() to measure the runtime of an expression, I will | not get the result. Is there a way to measure the runtime and get the | result as well? Use an assignment inside system.time(): R system.time( m - max(rnorm(1e6)) )

Re: [R] How to get the runtime as well as the result?

2009-12-10 Thread Peng Yu
On Thu, Dec 10, 2009 at 7:03 PM, Dirk Eddelbuettel e...@debian.org wrote: On 10 December 2009 at 18:12, Peng Yu wrote: | If I use system.time() to measure the runtime of an expression, I will | not get the result. Is there a way to measure the runtime and get the | result as well? Use an