summaryTxTablePrint | R Documentation |
Formats and prints the LaTeX 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)
dataFrame |
transaction summary data frame generated by |
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. |
Does not return a value. It prints the xtable.
Greg Hunt <greg@firmansyah.com>
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.