name_key: Merge Name

View source: R/nfl_funs.R

name_keyR Documentation

Merge Name

Description

This function takes a vector of NFL names and converts them to merge-ready format. All arguments but name are optional and draft_year is optional but data entered must be in year format.

Usage

name_key(name, arg_1 = "", arg_2 = "", draft_year = "")

Arguments

name

vector of NFL names to be converted to merge-ready format

arg_1

(optional) additional argument to add specificity. (Draft Round recommended fo consistency reasons)

arg_2

(optional) additional argument to add specificity. (position recommended fo consistency reasons) #' @param draft_year (optional) vector of years in YYYY format

Value

simplified name (using on ffscrapr mismatches, draft year, and additional arguments)


SCasanova/pfrefscrape documentation built on Aug. 21, 2022, 8:32 p.m.