simRedCard {unitedR} | R Documentation |
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 signature 'formation,numeric,matrix'
simRedCard(obj, lineup, Hard)
Arguments
obj |
object of the class |
lineup |
lineup of the corresponding object |
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
[Package unitedR version 0.4 Index]