Learn R Programming

rtemis (version 0.79)

printdf: Print data frame

Description

Pretty print a data frame

Usage

printdf(x, pad = 0, spacing = 1, ddSci.dp = NULL,
  transpose = FALSE, justify = "right", colnames = TRUE,
  rownames = TRUE, column.col = rtHighlight$bold, row.col = silver,
  newline.pre = FALSE, newline = FALSE)

Arguments

x

data frame

pad

Integer: Pad output with this many spaces. Default = 2

spacing

Integer: Number of spaces between columns. Default = 1

ddSci.dp

Integer: Number of decimal places to print using ddSci. Default = NULL for no formatting

transpose

Logical: If TRUE, transpose x before printing. Default = FALSE

justify

String: "right", "left". Default = "right"

colnames

Logical: If TRUE, print column names. Default = TRUE

rownames

Logical: If TRUE, print row names. Default = TRUE

column.col

crayon color for printing column names. Default = rtemis default highlight

row.col

crayon color for printing row names. Default = silver

newline.pre

Logical: If TRUE, print a new line before printing data frame. Default = FALSE

newlin

Logical: If TRUE, print a new line after printing data frame. Default = FALSE

Details

By design, numbers will not be justified, but using ddSci.dp will convert to characters, which will be justified. This is intentional for internal use.