Learn R Programming

reproducible (version 1.2.8)

messageDF: Use message to print a clean square data structure

Description

Sends to message, but in a structured way so that a data.frame-like can be cleanly sent to messaging.

Usage

messageDF(df, round, colour = NULL, colnames = NULL)

Arguments

df

A data.frame, data.table, matrix

round

An optional numeric to pass to round

colour

Passed to getFromNamespace(colour, ns = "crayon"), so any colour that crayon can use

colnames

Logical or NULL. If TRUE, then it will print column names even if there aren't any in the df (i.e., they will) be V1 etc., NULL will print them if they exist, and FALSE which will omit them.