and_so_on: Formats tables to show top and bottom rows.

View source: R/and_so_on.R

and_so_onR Documentation

Formats tables to show top and bottom rows.

Description

Formats tables to show top and bottom rows.

Usage

and_so_on(
  data,
  top = 3,
  bottom = 2,
  message = ifelse(bottom == 0, "... until row {nrows}", "... {nrows} rows in total ..."),
  format = c(NULL, "html", "latex"),
  row.names = FALSE,
  full_width = TRUE,
  position = c("center", "left", "right", "float_left", "float_right"),
  options
)

Arguments

data

A data frame to display

top

An integer. How many of the first rows to show.

bottom

Like top, for for the bottom rows.

message

Character string to place between the top and bottom rows.

format

Either "html" or "latex".

row.names

If TRUE, will include row.names in table

full_width

If FALSE, table will be condensed

position

can be "center", "left", "right", "float_left", or "float_right"

options

For compatibility with knitr render= chunk option

For Rmd documents, the format will be detected automatically if you don't use the format argument.'


dtkaplan/Znotes documentation built on Sept. 4, 2022, 10:21 a.m.