getFamily: Find all distributions in a package

Description Usage Arguments Value Note Author(s) Examples

View source: R/getFamily.R

Description

Given the name of a package, this function finds all distribution families that are provided in the package. Distributions are identified by scanning all function names in a package for the pattern r***, p***, q***, d***, (*** representing at least one character)

Usage

1
getFamily(pkg)

Arguments

pkg

character string; name of the package

Value

A list of of lists, the latter with two named elements:

package

The name of the package as provided to the function

family

The name of the function that belongs to a distribution family, referred to as *** above.

Note

The function make do with at least two functions that have the same remainder of the function name.

Author(s)

Manuel Hentschel, Valentin von Trotha

Examples

1
   str(getFamily("stats"))

DistributionFitR documentation built on March 13, 2020, 3:29 a.m.