cpsievert / pitchRx

Tools for scraping MLB Gameday data and Visualizing PITCHf/x
http://cpsievert.github.io/pitchRx/
Other
124 stars 33 forks source link

Two small bugs in strikeFX #75

Open apoppick opened 3 years ago

apoppick commented 3 years ago

Line 91: as.numeric(FX[,i]) should be as.numeric(FX[[i]]) so that this works if FX is a tbl. (Otherwise get an error that a list object cannot be coerced into a double.)

Line 207 should be deleted. It is overwriting the work done in lines 199-205 and produces an error if density1 and density2 are not identical.