Description Usage Arguments Examples
This function aggregates already calculated vintage data by removing or
keeping selected Slicers
.
1 2 | aggregateVintageData(vintageData = NULL, slicers = NA, type = "include",
timeAggregationUnit = 1, sqlModifier = NA, verbose = FALSE)
|
vintageData |
Result of function |
slicers |
Vector of slicers which should be included or excluded. |
type |
Indicating inclusion or exclusion of |
timeAggregationUnit |
Defines how distance should be aggregated. By
default, distance is not modified at all. When specified, single integer has
to be used. For example using value 3 and distance values in
|
sqlModifier |
Optional |
verbose |
If true, then additional diagnostic messages are displayed.
Default is |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # Aggregations ##########################
# Show data by region
aggregateVintageData(vintageData, slicers = 'region')
# Show data by origination_month
aggregateVintageData(vintageData, slicers = 'origination_month')
# By product and region
aggregateVintageData(vintageData, slicers = c('region','product'))
#Everything but origination_month
aggregateVintageData(vintageData, slicers = 'origination_month', type = 'exclude')
#Everything but origination_month
aggregateVintageData(vintageData, slicers = 'origination_month', type = 'exclude')
#Exclude all slicers, only distance will be displayed
aggregateVintageData(vintageData, type = 'include')
#Exclude all slicers and aggregate also distance (set high timeAggregationUnit parameter)
aggregateVintageData(vintageData, type = 'include', timeAggregationUnit = 1000)
#Keep only product dimension, only product "Giga Loan"
aggregateVintageData(vintageData, slicers = 'product', sqlModifier = "product = 'Giga Loan'")
#Keep only product dimension, only product "Giga Loan" and region "West"
aggregateVintageData(vintageData, slicers = 'product', sqlModifier = "product = 'Giga Loan' and region = 'West'")
# Show diagnostic messages
aggregateVintageData(vintageData, slicers = 'region', verbose = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.