Learn R Programming

define (version 0.2.9)

as.tabular.define: Coerce to Tabular from Define

Description

Coerces to class 'tabular' from class 'define'.

Usage

# S3 method for define
as.tabular(
  x,
  caption = "",
  grid = TRUE,
  rules = 1,
  colwidth = c("1in", "1in", "0.5in", "1.5in", "1.5in"),
  tabularEnvironment = "longtable",
  walls = 1,
  tabnum = FALSE,
  pretable = if (is.null(caption)) "" else paste(if (tabnum) "\\caption{" else
    "\\caption*{", caption, "}\\\\"),
  prepos = 1,
  headerBold = TRUE,
  reserve = FALSE,
  ...
)

Arguments

x

define object

caption

caption for definitions table

grid

passed to latexpdf::as.tabular.data.frame

rules

passed to latexpdf::as.tabular.data.frame

colwidth

passed to latexpdf::as.tabular.data.frame

tabularEnvironment

passed to latexpdf::as.tabular.data.frame

walls

passed to latexpdf::as.tabular.data.frame

tabnum

whether to number the table

pretable

material to include before table, typically a caption

prepos

after which line number should pretable be inserted?

headerBold

whether to use a bold header

reserve

passed to as.tabular

...

passed to as.tabular