get_away_score: Get Away Team Score

View source: R/add_variables.R

get_away_scoreR Documentation

Get Away Team Score

Description

This function extracts the away team score from a vector of scores.

Usage

get_away_score(scores)

Arguments

scores

A character vector containing scores.

Value

A numeric vector of the away team scores extracted from the input scores.

Examples

scores <- c("3x2", "1x0", "2x2")
get_away_score(scores)


williamorim/brasileirao documentation built on Dec. 10, 2024, 6:12 a.m.