Learn R Programming

WebAnalytics (version 0.9.14)

laTexFilePercentileComparisonsWrite: Write percentile count comparison table

Description

Writes a LaTeX table listing URLs in decreasing order of request count for a baseline workload compared with a current workload on stdout for incorporation in a LaTeX report

Usage

laTexFilePercentileComparisonsWrite(latest, 
          baseline, 
          headingLaTeX="\\section{Transaction Count Percentile Ranking}")

Value

Does not return a value.

Arguments

latest

data frame of log records for the latest (test) workload

baseline

data frame of log records for the baseline workload

headingLaTeX

LaTeX section heading for this table

Author

Greg Hunt <greg@firmansyah.com>

Examples

Run this code
# \dontshow{
datd = paste0(tempdir(),"/minconfigtemp")
unlink(datd)
dir.create(paste0(tempdir(),"/minconfigtemp"))
logfile = paste0(datd,"/log.log")
fileConn = gzfile(system.file("extdata", "compressed.log", package = "WebAnalytics"))
writeLines(readLines(fileConn,n=100),con=logfile)
close(fileConn)
setDTthreads(threads = 1)
# }

logFileName = logFileNamesGetLast(dataDirectory=datd, 
  directoryNames=c(".", "."), 
  fileNamePattern="*[.]log")[[1]]

cols = logFileFieldsGetIIS(logFileName)

logdf = logFileRead(logFileName, columnList=cols, 
            logTimeZone = "", timeFormat = "")

laTexFilePercentileComparisonsWrite(logdf, 
                logdf)

Run the code above in your browser using DataLab