Skip to contents

RTMB represents vector and array parameters by repeating their base parameter name. This helper turns that layout into unique names that can be used safely as matrix columns and for name-based alignment.

Usage

expand_parameter_names(x)

Arguments

x

Character vector of raw RTMB parameter names.

Value

A character vector of the same length. Names that occur more than once are suffixed with one-based indices in square brackets.