Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

translate_to_LaTeX

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)

  • 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.


atable

Create Tables for Reporting Clinical Trials

v0.1.10
GPL-3
Authors
Armin Ströbel [aut, cre] (<https://orcid.org/0000-0002-6873-5332>), Alan Haynes [aut] (<https://orcid.org/0000-0003-1374-081X>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.