clean_player_contest_info: Clean DraftKings player information (ownership, points...

View source: R/Clean Functions.R

clean_player_contest_infoR Documentation

Clean DraftKings player information (ownership, points scored) from a DraftKings'contest-standings' csv

Description

Takes a dataframe with player ownership and points information from a draftkings 'contest-standings' csv, and returns a clean dataframe with values converted to numeric

Usage

clean_player_contest_info(player_contest_data)

Arguments

player_contest_data

A dataframe of player ownership and points scored information from a DraftKings "contest-standings" csv (columns 8-11)

Value

Player information for a given contest with numeric variables

Examples



player_info <- clean_player_contest_info(player_data)
head(player_info)



Dmunslow/tidyDK documentation built on Nov. 8, 2022, 8:53 a.m.