formation: Representing a formation

Description Usage Arguments Value

View source: R/formation.R

Description

Represents a valid united formation.

Usage

1
2
3
4
5
6
7
8
9
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.


unitedR documentation built on July 8, 2020, 6:38 p.m.