powered by
Pandoc's mardown formula.
pandoc.formula.return( x, text = NULL, max.width = 80, caption, add.line.breaks = FALSE, ... )
formula
text to be written before result in the same line. Typically used by calls from other functions in the package
maximum width in characters per line
caption (string) to be shown under the formula
if to add 2 line breaks after formula
extra arguments passed by from parent call, disregarded
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.
cat
.return
# NOT RUN { pandoc.formula(y ~ x) pandoc.formula(formula(paste('y ~ ', paste0('x', 1:12, collapse = ' + ')))) # }
Run the code above in your browser using DataLab