Hi there,
Thanks for writing the package, enjoying getting to grips with it but came across a strange qwerk.
I'm following the tutorial in the manual looking at horse races.
getMarket seems to work fine and pulls up the expected number of runners. However...
When using getMarketPrices I seem to be getting info for one less runners than are in the race. I've checked on the website that the correct number of runners match up with the getMarket call - so something going wrong with getMarketPrices, or my implementation? Code below. The market ID is for GOODWOOD 4TH AUG - Nassau Stks, so should be useable for a week or so.
Presume the underlying code is calling something outside of R as I can't run the components of getMarketPrices to see what is happening where.
Sample code below, any thoughts would be greatly appreciated!
mktID=106109934 #Nassau stakes, 4th Aug
dfIndMkt<-getMarket(mktID)$runners #push runners and selectionID to a df
dfIndMkt<-data.frame(name=dfIndMkt$name,selectionId=dfIndMkt$selectionId)
dfIndMkt
lsPrices<-getMarketPrices(mktID)$runnerPrices #push prices to a list - there are not enough
data.frame(best_back=foreach(i=lsPrices, .combine=c) %do% i$bestPricesToBack[1,4]) #output