summary.sprof: Summary for profiles

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/summary.sprof.R

Description

Print a summary for the output of class scode.

Usage

1
2
## S3 method for class 'sprof'
summary(object, ...)

Arguments

object

A data structure as returned by readRprof.

...

further arguments passed to or from other methods.

Value

None.

Author(s)

Günther Sawitzki <gsawitzki@users.r-forge.r-project.org>

References

http://sintro.r-forge.r-project.org/

See Also

summaryRprof

Examples

 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)

sprof documentation built on May 2, 2019, 4:45 p.m.