ryurko / fcscrapR

R package to scrape soccer commentary and statistics from ESPN
28 stars 11 forks source link

Extra Time Issue #4

Closed lbenz730 closed 6 years ago

lbenz730 commented 6 years ago

There seems to be 2 issues related to Extra Time + Penalty shootouts. The first issue is that penalty shots during shootouts seem to be registering as regular goals, without the penalty shot flag. The second issue is that extra time is misrepresented when converted to numeric (120' --> 12), likely as a result of using substring or something similar. Both issues were noticed when I couldn't figure out why there was an early spike of goals across this World Cup!

screen shot 2018-07-03 at 9 14 33 pm
ryurko commented 6 years ago

Thanks - should be good to go now, let me know if see anything odd still! Penalty shootouts are marked by half == 5 and penalty_shot == 1, with two new columns marking the goals made during the penalty shootouts.