utils: Utility functions to make things work better

utilsR Documentation

Utility functions to make things work better

Description

Utility functions to make things work better

Usage

normalize_names(x, key, warn = TRUE)

get_key_path(sport, prop, game_lines = FALSE)

hacky_tidyup_player_names(player_names)

get_content(uri, query)

american_to_prob(odds)

prob_to_american(probs)

list_df_to_df(df)

Arguments

x

Vector of strings to normalize in normalize_names

key

List of elements containing fields "name" and "aliases" in normalize_names

warn

Optional, Boolean – warn if a name in X was not found in the Key names in normalize_names

uri

main url for call to httr::GET

query

list of paramaters to pass to httr::GET

Note

normalize_names was sniped from jimtheflash/gambling_stuff and written by anthonyshook (to be clear, it was written by a hook owned by some fella named anthony)


jimtheflash/betfinder documentation built on Dec. 6, 2023, 5:58 a.m.