Description Usage Arguments Value Author(s) References See Also Examples
View source: R/summary.sprof.R
Print a summary for the output of class scode
.
1 2 |
object |
A data structure as returned by |
... |
further arguments passed to or from other methods. |
None.
Günther Sawitzki <gsawitzki@users.r-forge.r-project.org>
http://sintro.r-forge.r-project.org/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Not run:
## Rprof() is not available on all platforms
profinterval <- 0.001
simruns <- 100
n <- 10000
x <- runif(n)
y0 <- 2+ 3 * x
sinknull <- textConnection(NULL, "w"); sink(sinknull)
Rprof(tmp <- tempfile(), interval = profinterval)
for (i in 1:simruns) {y <- y0 + rnorm(n); xxx<- summary(lm(y~x))}
Rprof()
Rprof_out <- readProf(tmp)
unlink(tmp)
sink(); close(sinknull)
summary(Rprof_out)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.