makeUniqueDistributions: De-Duplicate Distribution Names

View source: R/makeUniqueDistributions.R

makeUniqueDistributionsR Documentation

De-Duplicate Distribution Names

Description

Helper function to lapply over the given distribution list, and make the short_names unique.

Usage

makeUniqueDistributions(distlist)

Arguments

distlist

list of Distributions.

Details

The short_names are made unique by suffixing each with a consecutive number so that the names are no longer duplicated.

Value

The list of inputted distributions except with the short_names manipulated as necessary to make them unique.

Examples

makeUniqueDistributions(list(Binomial$new(), Binomial$new()))

distr6 documentation built on March 28, 2022, 1:05 a.m.