dfprintif: Print a data.frame to HTML, with an alternate message if zero...

Description Usage Arguments Examples

Description

This function is a wrapper for printdf that prints a default or user-specified message for zero-row data.frames (instead of the default behavior, which is to print just the column header).

Usage

1
2
  dfprintif(df, norowmsg = "No records to display.",
    printdigits = 2)

Arguments

df

data.frame to print

norowmsg

the message to print if the data.frame has zero rows

printdigits

the number of digits to print for numeric variables (passed to printdf)

Examples

1
2
dfprintif(Orange)
dfprintif(Orange[0, ], norowmsg = "THEY ALL DIED")

mmparker/mpmisc documentation built on May 23, 2019, 5:05 a.m.