summaryTxTablePrint function

Prints a transaction summary table generated by summaryTxDataFrameCreate

Prints a transaction summary table generated by summaryTxDataFrameCreate

Formats and prints the for a transaction summary table as generated by summaryTxDataFrameCreate.

The first column in the table is assumed to be a URL and is 0.6 times the width of the text page, subsequent column are formatted left or right aligned as appropriate for numeric or character variables.

summaryTxTablePrint(dataFrame, formatFunctions=NULL)

Arguments

  • dataFrame: transaction summary data frame generated by summaryTxDataFrameCreate
  • formatFunctions: a list of formatting functions that accept a value and return a formatted value. The sample report includes functions f0, f2 that format numbers with 0 or 2 respectively decimal places.

Returns

Does not return a value. It prints the xtable.

Author(s)

Greg Hunt greg@firmansyah.com

Examples

f0<-function(n) { return(format(n,digits=1,nsmall=0,big.mark=",")) } f2<-function(n) { return(format(n,digits=2,nsmall=2,big.mark=",")) } logFileName = logFileNamesGetLast(dataDirectory=datd, directoryNames=c(".", "."), fileNamePattern="*[.]log")[[1]] cols = logFileFieldsGetIIS(logFileName) logdf = logFileRead(logFileName, columnList=cols, logTimeZone = "", timeFormat = "") summarydf = summaryTxDataFrameCreate(logdf) summaryTxTablePrint(summarydf[1:40,c(2,1,4,3)],list(format, f2, f2, f0))