bracket_parameters: Present parameters using bracket notation

View source: R/pretty_name.R

bracket_parametersR Documentation

Present parameters using bracket notation

Description

For distributions that have parameters, this function places those parameters in bracket notation, such as (0, 1) for a Normal distribution with a mean of 0 and variance of 1.

Usage

bracket_parameters(distribution, param_digits = 2)

Arguments

distribution

A single distplyr distribution for which the parameters() function can be applied.

param_digits

Number of significant digits to include in the output.

Value

a single character with the parameters separated by commas and sandwiched by brackets.


vincenzocoia/distionary documentation built on March 5, 2024, 3:13 a.m.