Learn R Programming

DistributionFitR (version 0.1)

getFamily: Find all distributions in a package

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

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.

Examples

Run this code
# NOT RUN {
   str(getFamily("stats"))
# }

Run the code above in your browser using DataLab