Learn R Programming

distr6 (version 1.5.2)

strprint: String Representation of Print

Description

Parsable string to be supplied to print, data.frame, etc.

Usage

strprint(object, n = 2)

Arguments

object

R6 object

n

Number of parameters to display before & after ellipsis

Value

String representation of the distribution.

Details

strprint is a suggested method that should be included in all R6 classes to be passed to methods such as cat, summary and print. Additionally can be used to easily parse R6 objects into data-frames, see examples.

Examples

Run this code
# NOT RUN {
Triangular$new()$strprint()
Triangular$new()$strprint(1)
# }

Run the code above in your browser using DataLab