Learn R Programming

tangram (version 0.8.2)

rmd: Generate an Rmd table entry from a cell object

Description

Given a cell object generate the corresponding piece of an Rmd table

Usage

rmd(object, key = FALSE, ...)

# S3 method for default rmd(object, key = FALSE, ...)

# S3 method for cell rmd(object, key = FALSE, ...)

# S3 method for cell_n rmd(object, key = FALSE, ...)

# S3 method for tangram rmd(object, key = NULL, append = FALSE, pad = 10, ...)

Value

A string representation of the table

Arguments

object

The cell_fstat for indexing

key

A filename to write key values into. Can be false if no key file is desired.

...

additional arguments to renderer. Unused

append

logical; Should the key file be appended too, or overwritten

pad

numeric; Minimum width of columns can be a single or vector of numerics.

Examples

Run this code
 rmd(tangram(drug ~ bili, pbc))

Run the code above in your browser using DataLab