Learn R Programming

unitedR (version 0.1)

simRedCard,formation,numeric-method: Simulate red card(s)

Description

Simulates red card(s) in the united and returns the adjusted lineup.

Usage

## S3 method for class 'formation,numeric':
simRedCard(obj, lineup)

simRedCard(obj, lineup)

Arguments

obj
object of the class formation
lineup
lineup of the corresponding object obj

Value

  • vector of the adjusted lineup for the red card(s)