Learn R Programming

mistr (version 0.0.6)

geomdist: Creates an Object Representing Geometric Distribution

Description

The function creates an object which represents the geometric distribution.

Usage

geomdist(prob = 0.5)

Value

Object of class geomdist.

Arguments

prob

probability parameter, default: 0.5.

Details

See Geometric.

See Also

Examples

Run this code
G <- geomdist(0.5)
d(G, c(2, 3, 4, NA))
r(G, 5)

Run the code above in your browser using DataLab