BuildInnerBreakdownsRecursively: BuildInnerBreakdownsRecursively

Description Usage Arguments Value

Description

Internal function - Builds inner breakdowns from nested report structure

Usage

1
2
3
BuildInnerBreakdownsRecursively(parent.element, elements, metrics,
  current.recursion.level, context, accumulator = data.frame(),
  date.range = "")

Arguments

parent.element

element containing breakdown rows

elements

list of all elements included in the report

metrics

list of all metrics included in the report

current.recursion.level

current recursion level, initial call should set this to 0, this increments as the function is called recursively

context

initially a blank list, with additional context added as we go further down the data structure

accumulator

data frame used to accumulate the report data (yes, I use some for loops here, if anyone can find a better way to do this with hierarchical data, please submit a pull request)

date.range

date range for the report, these columns are added if specified

Value

Flat data frame containing all key report data



Search within the RSiteCatalyst package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.