Learn R Programming

rlistings (version 0.2.1)

toString,listing_df-method: toString method for listing_df object

Description

toString method for listing_df object

Usage

# S4 method for listing_df
toString(x, widths = NULL, col_gap = 3, hsep = default_hsep())

Value

A character value containing the listing rendered into ASCII text.

Arguments

x

listing_df object

widths

numeric (or NULL). (proposed) widths for the columns of x. The expected length of this numeric vector can be retrieved with ncol() + 1 as the column of row names must also be considered.

col_gap

numeric(1). Space (in characters) between columns

hsep

character(1). Characters to repeat to create header/body separator line.

Examples

Run this code
lsting <- as_listing(mtcars)
toString(lsting)

Run the code above in your browser using DataLab