prms_to_str: Format Parameters as String

View source: R/utils.R

prms_to_strR Documentation

Format Parameters as String

Description

Converts parameter values into a formatted string.

Usage

prms_to_str(x, prms = NULL, round_digits = NULL, sep = "=>", collapse = "\n")

Arguments

x

a drift_dmobject or character vector for labels.

prms

Numeric vector of values (used if x is character).

round_digits

Rounding precision (default set by drift_dm_default_rounding()).

sep

Separator between names and values (default: "=>").

collapse

String to separate each name-value pair (default: "\n").

Value

A single formatted string with parameter names and values. (e.g., "a => 0 \n b => 1")

See Also

coef.drift_dm(), as the numeric vector provided by this call is used when x is of type drift_dm


dRiftDM documentation built on April 3, 2025, 7:48 p.m.