prs_ftscore: Parse Full Time score

Description Usage Arguments Value

View source: R/parse_information.R

Description

A function that takes a full time result and tries to parse this as an integer vector of H vs. A.

Usage

1
prs_ftscore(ftScore)

Arguments

ftScore

A character string of the form '[2-0]', and will be parsed as an integer vector of 2 0.

Value

An integer vector of the form c(home_score, away_score).


ntyndall/footballstats documentation built on Aug. 13, 2019, 1:36 p.m.