Learn R Programming

unitedR (version 0.2)

formation: Representing a formation

Description

Represents a valid united formation.

Usage

formation(GK, SW, DF, MF, ST, hardness = c(0, 0, 0, 0, 0), homeAdv = c(0, 0, 0, 0, 0))

Arguments

GK
integer for the strength goalkeeper
SW
vector for the strength of the sweeper, can be NA or a numeric
DF
numeric vector for the strengths of the players in the defense
MF
numeric vector for the strengths of the players in the midfield
ST
numeric vector of integers for the strenghts of the strikers
hardness
numeric vector of length five with integers for the used hardness
homeAdv
numeric vector of length five with integers for the used hardness

Value

S4 object of the class formation.