get_home_score: Get Home Team Score

View source: R/add_variables.R

get_home_scoreR Documentation

Get Home Team Score

Description

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

Usage

get_home_score(scores)

Arguments

scores

A character vector containing scores.

Value

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

Examples

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


williamorim/brasileirao documentation built on Sept. 28, 2024, 8:36 a.m.