Various scripts etc. for fantasy baseball.

Nathan D. Smith 5ebf070fff Make it all work 7 months ago
LICENSE dc27960ed7 Initial commit 7 months ago
Merge-PlayerData.ps1 5ebf070fff Make it all work 7 months ago
README.md c849e393fd Add script, expand readme 7 months ago

README.md

baseball

Various scripts etc. for fantasy baseball.

Merge-PlayerData.ps1

Description

This script is intended for use with Ottoneu virtual leagues using FanGraphs points. It requires CSV exports of steamer data for batters and pitchers from Fangraphs, an export of your league's roster data, and the current average salary data from ottoneu.

The output is two csv files, one each for batters and pitchers. These will you with a central location with predictions, your league's roster info, league salary, average salary, and the ability to calculate points and conduct other analysis.

Pre-requisites

Obtain the following input files:

  • Steamer CSV export for batters
  • Steamer CSV export for pitchers
  • DepthCharts CSV export for pitchers
  • Ottoneu league CSV export of rosters
  • Ottoneu CSV export of average salaries

Rename each sensibly. I found that for some reason the batters export has several columns headed by "-1" with no contents. I deleted these before processing.

Example

Merge-PlayerData.ps1 -Batters batters.csv -Pitchers pitchers.csv -Rosters league_000_rosters.csv -Salaries ottoneu_average_values.csv

You'll be greated with two output files, batters-out.csv and pitchers-out.csv.