Skip to content
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

Can't assign 94 names to a 113 column data.table #354

Open
Trev0164 opened this issue Nov 14, 2024 · 5 comments
Open

Can't assign 94 names to a 113 column data.table #354

Trev0164 opened this issue Nov 14, 2024 · 5 comments
Assignees
Labels

Comments

@Trev0164
Copy link

Have been working with baseballr for a couple months now and sometime between now and last week I got an error 'Can't assign 94 names to a 113 column data.table' after trying to run a statcast search:

RyanM2021.Statcast <- try(statcast_search(start_date = "2021-04-02", end_date = "2021-10-03", playerid = 663624, player_type = 'batter')).

Wasn't sure if there was an immediate fix or if I needed to wait for the package to be updated. I'm running Version:
baseballr v1.6.0 and I installed baseballr using devtools::install_github(repo = "BillPetti/baseballr").

@alex-susi
Copy link

I'm getting the same error. My best guess is that it's due to the new Pitcher Arm Angle field on Statcast

@whawkins32
Copy link

Also running into this issue. Should be a quick fix, Statcast seems to have changed their columns.

@camdenk
Copy link
Collaborator

camdenk commented Nov 15, 2024

Download the newest version of baseballr with this command devtools::install_github(repo = "BillPetti/baseballr"), restart your R session, and then you should be good to go!

@camdenk camdenk self-assigned this Nov 15, 2024
@camdenk camdenk added the bug label Nov 15, 2024
@Trev0164
Copy link
Author

This worked for me, thank you!

@abcamp
Copy link

abcamp commented Nov 16, 2024

Thanks for the update! It works for me as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants