Learn R Programming

pander (version 0.5.1)

pandoc.formula.return: Formulas

Description

Pandoc's mardown formula.

Usage

pandoc.formula.return(x, text = NULL, max.width = 80, caption,
  add.line.breaks = FALSE)

Arguments

x
formula
text
text to be written before result in the same line. Typically used by calls from other functions in the package
max.width
maximum width in characters per line
caption
caption (string) to be shown under the formula
add.line.breaks
if to add 2 line breaks after formula

Value

  • By default this function outputs (see: cat) the result. If you would want to catch the result instead, then call the function ending in .return.

Examples

Run this code
pandoc.formula(y ~ x)
pandoc.formula(formula(paste("y ~ ", paste0("x", 1:12, collapse = "+ "))))

Run the code above in your browser using DataLab