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

Error reading player data for bowling stats #8

Open
linusjf opened this issue Sep 24, 2023 · 0 comments
Open

Error reading player data for bowling stats #8

linusjf opened this issue Sep 24, 2023 · 0 comments

Comments

@linusjf
Copy link

linusjf commented Sep 24, 2023

library(cricketr)
library(cricketdata)
murali_id = find_player_id("Muttiah Muralitharan")$ID
murali <- getPlayerData(murali_id,dir=".",file="murali.csv",type="bowling",homeOrAway=c(1,2), result=c(1,2,4))
warne_id = find_player_id("Shane Warne")$ID
warne <- getPlayerData(warne_id,dir=".",file="warne.csv",type="bowling",homeOrAway=c(1,2), result=c(1,2,4))
kumble_id = find_player_id("Anil Kumble")$ID
kumble <- getPlayerData(kumble_id,dir=".",file="kumble.csv",type="bowling",homeOrAway=c(1,2), result=c(1,2,4))

Output:

Registered S3 method overwritten by 'quantmod':
  method            from
  as.zoo.data.frame zoo
Error in if (n[2] == "BPO") { : missing value where TRUE/FALSE needed
Calls: getPlayerData
Execution halted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant