Learn R Programming

distr6 (version 1.5.2)

makeUniqueDistributions: 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.

Value

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

Details

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

Examples

Run this code
# NOT RUN {
makeUniqueDistributions(list(Binomial$new(), Binomial$new()))
# }

Run the code above in your browser using DataLab