reduce.p: Helper function to reduce the proftools call graph to limited...

Description Usage Arguments Value Author(s) Examples

Description

This is a hack that takes an object from the proftools package and slims it down. Basically the callgraph code in proftools included all sorts of R internals nonsense and had no option to reduce it. This code does that, in a pretty aggressive way. Unclear how this could be useful beyond the call.graph.setup routine.

Usage

1
reduce.p(p, e)

Arguments

p

The p object crunched by proftools

e

The environment agains which p should be reduced.

Value

A new object with the exact same form as p, but with only those functions in e

Author(s)

Alex

Examples

1
2
3
data(market_95)
f <- "pr <- price.response(DF)"
pd <- prof.routine(f)

NorskRegnesentral/NRTools documentation built on May 7, 2019, 6:19 p.m.