-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getData — Error in bind_rows_(x, .id) : Column balls
can't be converted from character to integer
#111
Comments
Hmm...OK, thanks. Can you identify a particular day in 2012, or better yet, a particular game in which the problem arises? That would be helpful in debugging. |
No, sorry. I scraped the entire regular season at once. The |
I received this error when retrieving data for the 2012 regular season. When I change the line of code in
getData(...)
from,out <- dplyr::bind_rows(ds.list)
to
out <- do.call(rbind, lapply(ds.list, data.frame, stringsAsFactors=FALSE))
the code completes without an error, though
balls
andstrikes
are of type character so they need to be converted to integer:out <- transform(out, balls = as.integer(balls), strikes = as.integer(strikes))
The text was updated successfully, but these errors were encountered: