Make a framework table
Usage
make_framework_table(
parsedSources,
classId,
codeAggregation = "maxLeafs",
codeAggregation_maxLeafs = 5,
codeAggregation_maxDepth = 2,
codeSelectionRegex = ".*",
classInstanceSelectionRegex = ".*"
)Arguments
- parsedSources
The object with parsed ROCK sources
- classId
The identifier of the class the instances of which should form the framework table rows
- codeAggregation
How to aggregate codes (to prevent too many columns); either
none(do not aggregate codes),maxLeafs(the maximum number of leaves (codes without children or 'sub-codes') to allow; with a higher number, all codes are collapsed into their parent code) ormaxDepth(the maximum depth of codes to include; all codes at a higher 'depth' (farther away from the root; the highest-level codes are level 1, their children or 'sub-codes' are level 2, their children or 'sub-codes' are level 3, and so on) are collapsed into their parent code).- codeSelectionRegex
A regular expression against which to match the codes to form the framework table columns - this is matched against the original applied codes, and so in combination with the code aggregation
- classInstanceSelectionRegex
A regular expression against which to match the class instance identifiers to be included in the rows
- maxLeafs
When aggregating codes, the maximum number of leaves (codes without children or 'sub-codes') to allow; with a higher number, all codes are collapsed into their parent code
- maxDepth
When aggregating codes, (the maximum depth of codes to include; all codes at a higher 'depth' (farther away from the root; the highest-level codes are level 1, their children or 'sub-codes' are level 2, their children or 'sub-codes' are level 3, and so on) are collapsed into their parent code.
