printVintageData: Print Vintage Data

Description Usage Arguments Examples

Description

This function prints results of getVintageData function. All Slicers in results have to be included in plot definition. Data are pivoted by distance column.

Usage

1
2
3
4
printVintageData(vintageData, columns = c("vintage_unit_weight",
  "vintage_unit_count", "event_weight", "event_weight_pct", "event_weight_csum",
  "event_weight_csum_pct"), result = "print", file = "vintageData.xls",
  digits = getOption("digits"), stacked = FALSE)

Arguments

vintageData

Result of getVintageData function.

columns

Columns to be printed. Any combination of the following possible statistics: vintage_unit_weight, vintage_unit_count, event_weight, event_weight_pct, event_weight_csum, event_weight_csum_pct. For every statistic one table will be printed.

result

Type of result. By default, data are printed. If xls is used than data are written to XLS file.

file

Name of XLS file where data should be stored. Makes sense only when Result is set to xls. If no name is given and Result is xls then name VintageData.xls will be used as default.

digits

Number of significant digits to be used when printing (only valid for Result='print')

stacked

If TRUE then all tables will be saved on single sheet in XLS. Default is FALSE.

Examples

1
2
3
4
5
6
## Not run: 
printVintageData(vintageData,"event_weight_csum_pct", result = 'xls')
printVintageData(vintageData,c("event_weight, event_weight_csum_pct"), result = 'xls')
printVintageData(vintageData, result = 'xls', file = 'MyVintageAnalysis')

## End(Not run)

tomasgreif/vintager documentation built on May 31, 2019, 5:16 p.m.