match_result: Match Result

Description Usage Arguments Value

View source: R/classify_form_info.R

Description

A function that returns a single character value of 'W' / 'L' / 'D' depending on the scores and which team scored them.

Usage

1
match_result(scoreCurrent, scoreOther)

Arguments

scoreCurrent

An integer value denoting the home team score.

scoreOther

An integer value denoting the away team score.

Value

Returns one of 'W' / 'L' / 'D'.


niallbenj/footballstats documentation built on Aug. 13, 2019, 5:12 p.m.