trimstacks: Trim 'sprof' stacks.

Description Usage Arguments Details Value Author(s) Examples

View source: R/trimstacks.R

Description

Trim sprof stack information by top level or by node.

Usage

1
trimstacks(sprof, level, trimnode)

Arguments

sprof

a sprof data structure, if available, or a stacks$nodes information.

level

Level to cut off.

trimnode

A node considered end of scaffold. Entries up to and including this node are trimmed. Nodes can be marked as index, or as node name.)

Details

The level information is evaluated first, and then the node information is evaluated.

Value

A data structure corresponding to stacks$nodes, with the trimmed parts cut off. This may contain NULL entries.

Author(s)

Günther Sawitzki <[email protected]>

Examples

1
2
3
4
 data(sprof01lm)
 trimmed <- trimstacks(sprof01lm, trimnode="summary")
sprof01lm$stacks$nodes <- trimmed  #now the refereces are update, and graphs will work
sprof02lm <- updateRprof(sprof01lm) #now the info is updated, and summeries will be consistent.

sprof documentation built on May 31, 2017, 1:56 a.m.