-
Notifications
You must be signed in to change notification settings - Fork 0
/
pfxLoadSavedDataHere.R
executable file
·60 lines (43 loc) · 1.98 KB
/
pfxLoadSavedDataHere.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Bartev Vartanian
# 10/17/11
# The place to go to just load pre-processed data
# Load stuff here
getwd()
setwd("~/Rmac/Pitchfx/PitchFX")
rm(list = ls())
# From PfxLoad09Data.R
load("pfxData09.Rdat") # pitchfx '09 data - full monty
load("pfxDataWorkingCopy09.Rdat") # pitchfx '09 data - full monty
load("pfxDataSample.Rdat") # pitchfx '09 data - 5000 row max
# From pfxStartHere.R
# Pitch data after processed by 'ModifyPitchCols' (in 'pfxFuncModifyPitchCols.R')
load('pfxData_pitch.Rdat') # 5000 row max, pitch.m (modified), .s (smaller), .z (strike zone)
load('pfxData_p09.Rdat') # Full monty '09 data, .m, .s, .z
load('pfxData_atbatMod.Rdat') # 5000 row and all rows of modified atbat data
# From pfxMod1.R
load('pfxMod1.Rdat') # SwingingStrikes ~ TotalPitches
# From pfxMod3.R
load('pfxMod3.Rdat') # ERA, starting/relief, etc.
load('pfxMod3pitcherdf.Rdat') # stats summed up by pitcher
# from pfxMod4.R
load('pfxMod4.Rdat') # df with pitchNum, type(B/S/X), Freq(for given pitchNum), Start/Relief, also eraDf
# From pfxMod7.R
load('pfxMod7PitcherSummary.Rdat')
# from pfxMod10.R
load('pfxMod10pitcherdf10.Rdat') # df with pitcher specific data. (more than from model3)
load('pfxMod10abpb.Rdat') # df with at bat level data to do regressions on. Includes rankings of pitchers, num different pitches for each at bat, pitcher & batter stats
# From pfxMod12.R
load('pfxMod12pdMerge.Rdat')
load('pfxMod12regressionData')
# from pfxMod13-Ariel.R
# save(sdf, tdf, tdfPerInning, file='pfxMod13StatsPerInning.Rdat')
load('pfxMod13StatsPerInning.Rdat')
# save(toRegress, ppiTrain, ppiTest, trainIndices, file='pfxMod13regressionData')
# save(scaling, scaleParam, file='pfxMod13scaling.Rdat')
load('pfxMod13scaling.Rdat') # scaling parameters (see bvRaysUtilityFunctions for functions to scale/unscale data)
# Incorporated in pfxStartHere, and vectorized.
# Used in pfxModifyAtbatData.R
# library(sqldf)
# source("pfxCumRunsFunction.R")
# From pfxModifyAtbatData.R
# load("pfxData-plateAppearance.Rdat")