pprt: Probability of an Event

Description Usage Arguments Value Examples

View source: R/ch3-fn.R

Description

Calculating the Probability of an Event

Usage

1
pprt(x, n, prt = TRUE)

Arguments

x

Event in data frame.

n

Size of the sample space.

prt

Print output? Default: TRUE

Value

The probability of an event.

Examples

1
2
3
S = rolldie2(2)
B = subset(S, (X1+X2) >=8)
pprt(B, nrow(S))

tjssu/Rstat documentation built on Aug. 8, 2020, 12:38 p.m.