process_dist_name: Process the distribution name argument into a distribution...

View source: R/dist_name_k_converter.R

process_dist_nameR Documentation

Process the distribution name argument into a distribution index

Description

This function is intended to help with compatibility with the previous versions of the package.

Usage

process_dist_name(distname)

Arguments

distname

Can be an integer or a distribution name. Allowed names are "normal", "gamma", "beta", "exponential", "lognormal", "half-Cauchy", "half-normal", "half-student", "uniform" and "truncated normal", or their common abbreviations "norm", "exp", "halfcauchy", "halfnorm", "halft" and "unif".

Value

an integer both if distname is an integer or a character


konkam/BNPdensity documentation built on March 14, 2024, 7:15 a.m.