Skip to content

home_team_runs and away_team_runs returned NA #17

Closed
@vegas31

Description

@vegas31

I am using pitchRx and scrape to look at some data related to what pitches a pitcher uses, given the score of the game. In order to do this, I am looking at the home_team_runs and away_team_runs columns in GameDay data, which pitchRx/scrape provides. However, I am encountering a lot of NA's in my data when the values are actually there, when I search 'home_team_runs' on gd2.mlb.com in the relevant xml file.

Here are my commands:
library(dplyr)
library(pitchRx)
june8 <- scrape(start = "2014-06-08", end = "2014-06-08")

I was mostly interested in the WAS/SDN game, which returned all NA for Jordan Zimmermann; looking at different games on June 8 and also games on different days gives me for the most part the same results -- there are some sporadic entries (see screenshot attached, which are the results of doing a View(june8$atbat))

I am on a OS X 10.9.3, and using pitchRx version 1.5 on R Studio Version 0.98.501.

Happy to pass along any other info you need if I have forgotten anything -- many thanks!

Stuart

screen shot 2014-06-10 at 1 13 26 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions