atable (version 0.1.0)

translate_to_LaTeX: A wrapper for latexTranslate

Description

Translate_to_LaTeX calls latexTranslate.

Usage

translate_to_LaTeX(x, ...)

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

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

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

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

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

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

Arguments

x

An object.

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

As in latex.

Value

Same length as x, now translated to latex.

Methods (by class)

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

  • list: Translates all elements of x.

  • character: As latexTranslate.

  • numeric: Casts to character and then translates.

  • factor: Translates the levels of the factor.

  • logical: Casts to character and then translates.

Details

Result is suitable for print with latex.

Translate_to_LaTeX uses S3 object system. See seection methods.