polyUrn: Urn

Description Usage Arguments Value

View source: R/polyUrn.R

Description

Urn

Usage

1
polyUrn(n = 20, r = 5, b = 7, g = 10, repl = FALSE)

Arguments

n

number of balls to draw from urn (integer value, default = 20)

r

number of RED balls in urn (default = 5)

b

number of BLUE balls in urn (default = 7)

g

number of GREEN balls in urn (default = 10)

repl:

with replacement (TRUE/FALSE)

Value

vector of 3 elements: numbers of balls drawn from each color


dco61/isteahMAT104 documentation built on Jan. 2, 2022, 2:24 a.m.