Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

distr2name

Conversion between abbreviated distribution names and proper names


Description

The function distr2name() converts abbreviated distribution names to proper distribution names (e.g. "norm" becomes "Gaussian").

The function name2distr() does the reciprocal operation.

Usage

distr2name(x)

name2distr(x)

Arguments

x

character. A vector of abbreviated distribution names or proper distribution names.

Value

A character vector of the same length as x. Elements of x that are not recognized are kept unchanged (yet in lowercase).

Examples

distr2name(c("norm", "dnorm", "rhyper", "ppois"))
name2distr(c("Cauchy", "Gaussian", "Generalized Extreme Value"))

statip

Statistical Functions for Probability Distributions and Regression

v0.2.3
GPL-3
Authors
Paul Poncet [aut, cre], The R Core Team [aut, cph] (C function 'BinDist' copied from package 'stats'), The R Foundation [cph] (C function 'BinDist' copied from package 'stats'), Adrian Baddeley [ctb] (C function 'BinDist' copied from package 'stats')
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.