Distribution: Initialize a Distribution

Description Usage Arguments Value

Description

Initialize a distribution from a data frame or a tibble.

Usage

1
2
## S4 method for signature 'data.frame'
Distribution(x, p = .data$P)

Arguments

x

A data frame or tibble.

p

An unquoted column name in x, which will be renamed to P to comply with the validity method for the Distribution class. If the values of this column in x do not sum to 1, then it is normalized by its sum, so that it may be treated as the values of a probability mass function.

Value

A Distribution


patrickreidy/distdist documentation built on May 22, 2019, 12:40 p.m.