dot-print.data.frame: Print a Data-Frame (allowing column/row separators)

.print.data.frameR Documentation

Print a Data-Frame (allowing column/row separators)

Description

Custom print method for objects of type data.frame. This function prints the data-frame in the same way as the default print.data.frame in the base package, except that it allows the user to add textual column/row separators in the print output in specified positions. To do this the user adds row/column values for the inputs row.separator and col.separator indicating that separators should be added after those rows/columns. The user can also set sep.extend to TRUE to extend the separators into the row/column-names.

Usage

.print.data.frame(
  x,
  ...,
  row.separator = NULL,
  col.separator = NULL,
  sep.extend = FALSE,
  print.gap = 1,
  digits = NULL,
  quote = FALSE,
  right = TRUE,
  row.names = TRUE,
  max = NULL
)

Arguments

x

A data-frame (object of class data.frame)

...

optional arguments to print or plot methods

row.separator

A vector of values of rows (adds separators after those rows)

col.separator

A vector of values of columns (adds separators after those columns)

sep.extend

Logical value; if TRUE the separators are extended into the row/column-names

print.gap

A non-negative integer specifyig the number of spaces between columns

digits

the minimum number of significant digits to be used: see print.default

quote

Logical value; if TRUE entries are printed with surrounding quotes

right

Logical value; if TRUE strings are right-aligned

row.names

Logical value or character vector; indicating whether (or what) row names are printed

max

numeric or NULL, specifying the maximal number of entries to be printed. By default, when NULL, getOption("max.print") used

Value

Prints the data frame with the specified column/row separators


utilities documentation built on July 1, 2022, 9:06 a.m.