map_club_name_to_number: Map club name to number

View source: R/map_club_name_to_number.R

map_club_name_to_numberR Documentation

Map club name to number

Description

Map club name to number

Usage

map_club_name_to_number(data, club_name)

Arguments

data

tibble with historical football results. See 'load_seasons'

club_name

character string with club name (for instance "Liverpool")

Details

The number is found by sorting all club names and picking the index corresponding to 'club_name' For this reason 'data' argument is needed


kristian-bak/football documentation built on Oct. 8, 2022, 2:11 p.m.