Ordering Win_markets returns 0 rows...

0 votes
Currently following the BetfaiR tutorial; so far (bar the SSL query mentioed on this forum) all is well; until chapter 4 Getting markte data...

Using the login.R & uk_horseracing_markets.R scripts; the next step is to order the days win markets as > win_markets[order(win_markets$"Event Date"),]

I must be doing something wrong; the output I get is...

> win_markets[order(win_markets$"Event Date"),]
 [1] Market ID            Market Name          Market Type          Market Status        Event Date           Menu Path            Event Hierachy     
 [8] Bet Delay            Exchange Id          ISO3 Country Code    Last Refresh         Number of Runners    Number of Winners    Total Amount Matched
[15] BSP Market           Turning In Play    
<0 rows> (or 0-length row.names)
asked Mar 12, 2012 in betfaiR package by calvertjames Plater (120 points)

1 Answer

0 votes
Hi - it looks like there were no horseracing win markets in the UK (that were yet to run or "turn in play") on the day in question.  If you try the script before racing starts you should return some results.
answered Mar 17, 2012 by colin Frankel (19,320 points)
...