Sends to message
, but in a structured way so that a data.frame-like can
be cleanly sent to messaging.
messageDF(df, round, colour = NULL, colnames = NULL)
A data.frame, data.table, matrix
An optional numeric to pass to round
Passed to getFromNamespace(colour, ns = "crayon")
,
so any colour that crayon
can use
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.