distr2name: Conversion between abbreviated distribution names and proper...

Description Usage Arguments Value Examples

View source: R/distr2name.R

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

1
2
3

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

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

paulponcet/statip documentation built on Nov. 19, 2019, 9:16 p.m.