Learn R Programming

unitedR (version 0.2)

penaltyGoalsProb: Computing goals by united

Description

Computes the distribution function of possible goals by penalties.

Usage

penaltyGoalsProb(posPenalties, penaltyGoalProb)

Arguments

posPenalties
number of possible penalties in a game
penaltyGoalProb
probability of a goal by a singular penalty

Value

A data.frame with two columns: the possible goals and the probability for achieving this number of goals.