Learn R Programming

unitedR (version 0.4)

simRedCard: Simulate red card(s)

Description

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

Usage

simRedCard(obj, lineup, Hard)

# S4 method for formation,numeric,matrix simRedCard(obj, lineup, Hard)

Arguments

obj

object of the class formation

lineup

lineup of the corresponding object obj

Hard

matrix of hardness to be used

Value

list with two elements:

  • vector adjusted lineup for the red card(s)

  • numeric number of red cards