toss.default: Coin Toss

Description Usage Arguments Details Author(s)

Description

Simulates the tossing of a coin n times.

Usage

1
2
3
## Default S3 method:
toss(n = 1, prob = 0.5, success = "H",
  failure = "T", ...)

Arguments

n

The number of times the coin is tossed

prob

The probability of "Success"; default is 0.5 to simulate a fair coin

success

Denotes "success"; default is "H"

failure

Denotes "failure"; default is "T"

...

additional parameters that may be supplied.

Details

Can also be thought of as simulating n bernoulli trials; not just coin tosses but any trial in which the outcome is binary.

Author(s)

Justin Strate


jstrat1618/cointosses documentation built on May 31, 2019, 11:51 p.m.