toLatex: Export results of statistical tests to LaTeX table(s).

View source: R/PA.EMOA.toLatex.R

toLatexR Documentation

Export results of statistical tests to LaTeX table(s).

Description

Returns high-quality LaTeX-tables of the test results of statistical tests performed with function test on per-instance basis. I.e., a table is returned for each instances combining the results of different indicators.

Usage

toLatex(
  stats,
  stat.cols = NULL,
  probs = NULL,
  type = "by.instance",
  cell.formatter = NULL
)

## S3 method for class 'list'
toLatex(
  stats,
  stat.cols = NULL,
  probs = NULL,
  type = "by.instance",
  cell.formatter = NULL
)

## S3 method for class 'data.frame'
toLatex(
  stats,
  stat.cols = NULL,
  probs = NULL,
  type = "by.instance",
  cell.formatter = NULL
)

Arguments

stats

[list]
Data frame (return value of computeIndicators) or named list of list as returned by test.

stat.cols

[character]
Names of the indicators to consider. Defaults to all indicators available in stats.

probs

[character]
Filtering: vector of problem instances. This way one can restrict the size of the table(s). Defaults to all problems available in stats. Ignored if stats is a data frame.

type

[character(1)]
Type of tables. At the moment only option “by.instance” is available. I.e., a separate LaTeX-table is generated for each instance specified via probs. Ignored if stats is a data frame.

cell.formatter

[function(cell, ...)]
Function which is used to format table cells. This function is applied to each table cell and may be used to customize the output. Default is niceCellFormater. Ignored if stats is a data frame.

Value

[list] Named list of strings (LaTeX tables). Names correspond to the selected problem instances in probs.

See Also

Other EMOA performance assessment tools: approximateNadirPoint(), approximateRefPoints(), approximateRefSets(), computeDominanceRanking(), emoaIndEps(), makeEMOAIndicator(), niceCellFormater(), normalize(), plotDistribution(), plotFront(), plotScatter2d(), plotScatter3d()


ecr documentation built on March 31, 2023, 10:07 p.m.