Learn R Programming

posterior (version 1.6.0)

print.draws_df: Print draws_df objects

Description

Pretty printing for draws_df objects.

Usage

# S3 method for draws_df
print(
  x,
  digits = 2,
  max_draws = getOption("posterior.max_draws", 10),
  max_variables = getOption("posterior.max_variables", 8),
  reserved = FALSE,
  ...
)

Value

A draws object of the same class as x.

Arguments

x

(draws) A draws object or another R object for which the method is defined.

digits

(nonnegative integer) The minimum number of significant digits to print. If NULL, defaults to getOption("posterior.digits", 2).

max_draws

(positive integer) The maximum number of draws to print. Can be controlled globally via the "posterior.max_draws" option.

max_variables

(positive integer) The maximum number of variables to print. Can be controlled globally via the "posterior.max_variables" option.

reserved

(logical) Should reserved variables be included in the output? Defaults to FALSE. See reserved_variables for an overview of currently reserved variable names.

...

Further arguments passed to the underlying print() methods.

Examples

Run this code
x <- as_draws_df(example_draws())
print(x)

Run the code above in your browser using DataLab