translate_to_LaTeX: A wrapper for latexTranslate

View source: R/translate_to_LaTeX.R

translate_to_LaTeXR Documentation

A wrapper for latexTranslate

Description

Translate_to_LaTeX calls latexTranslate.

Usage

translate_to_LaTeX(x, ...)

## S3 method for class 'data.frame'
translate_to_LaTeX(x, ...)

## S3 method for class 'list'
translate_to_LaTeX(x, ...)

## S3 method for class 'character'
translate_to_LaTeX(
  x,
  inn = NULL,
  out = NULL,
  pb = FALSE,
  greek = FALSE,
  na = "",
  ...
)

## S3 method for class 'numeric'
translate_to_LaTeX(x, ...)

## S3 method for class 'factor'
translate_to_LaTeX(x, ...)

## S3 method for class 'logical'
translate_to_LaTeX(x, ...)

Arguments

x

An object.

inn, out, pb, greek, na, ...

As in latex.

Details

Result is suitable for print with latex.

Translate_to_LaTeX uses S3 object system. See seection methods.

Value

Same length as x, now translated to latex.

Methods (by class)

  • translate_to_LaTeX(data.frame): Applies latexTranslate to rownames(x), colnames(x) and all columns of x.

  • translate_to_LaTeX(list): Translates all elements of x.

  • translate_to_LaTeX(character): As latexTranslate.

  • translate_to_LaTeX(numeric): Casts to character and then translates.

  • translate_to_LaTeX(factor): Translates the levels of the factor.

  • translate_to_LaTeX(logical): Casts to character and then translates.


atable documentation built on Sept. 17, 2023, 5:06 p.m.