R/constants.R

betStatus <- list("Cancelled", "Lapsed", "Matched", "Settled", "Unmatched")

courseAbbrev <- list(
Aintree = "Aint",
Ascot = "Ascot",
Ayr = "Ayr",
Bangor = "Bang",
Bath = "Bath",
Beverley = "Bev",
Bellewstown = "Bellew",
Brighton = "Brig",
Carlisle = "Carl",
Cartmel = "Cart",
Catterick = "Catt",
Cheltenham = "Chelt",
Chepstow = "Chep",
Chester = "Chest",
Doncaster = "Donc",
Epsom = "Epsm",
Exeter = "Extr",
Fakenham = "Fake",
Folkestone = "Folk",
Fontwell = "Font",
Ffos_Las = "FfosL  ",
Great_Leighs = "GLghs",
Goodwood = "Good",
Hamilton = "Ham",
Haydock = "Hayd",
Hereford = "Here",
Hexham = "Hex",
Huntingdon = "Hunt",
Kelso = "Kelso",
Kempton = "Kemp",
Leicester = "Leic",
Lingfield = "Ling",
Ludlow = "Ludl",
Market_Rasen = "MrktR",
Musselburgh = "Muss",
Newbury = "Newb",
Newcastle = "Newc",
Newmarket = "Newm",
Newton_Abbot = "Newt",
Nottingham = "Nott",
Perth = "Perth",
Plumpton = "Plump",
Pontefract = "Ponte",
Redcar = "Redc",
Ripon = "Ripon",
Salisbury = "Salis",
Sandown = "Sand",
Sedgefield = "Sedge",
Southwell = "Sthl",
Stratford = "Strat",
Sligo = "Sligo",
Taunton = "Taun",
Thirsk = "Thirsk",
Towcester = "Towc",
Uttoxeter = "Uttox",
Warwick = "Warw",
Wetherby = "Weth",
Wincanton = "Winc",
Windsor = "Wind",
Wolverhampton = "Wolv",
Worcester = "Worc",
Yarmouth = "Yarm",
York = "York",
Ballinrobe = "Ballin",
Bellewstown = "Belle",
Clonmel = "Clon",
Cork = "Cork",
Down_Royal = "DownR", 
Downpatrick = "DownP",
Dundalk = "Dund",
Fairyhouse = "Fairy",
Galway = "Gal",
Gowran_Park = "GowP",
Killarney = "Killar",
Kilbeggan = "Kilb",
Laytown = "Layt",
Leopardstown = "Leop",
Limerick = "Lim",
Listowel = "List",
Naas = "Naas",
Navan = "Navan",
Punchestown = "Punch",
Roscommon = "Rosc",
Sligo = "Silgo",
The_Curragh = "Curr",
The_Curragh = "Curragh",
Thurles = "Thurl",
Tipperary = "Tipp",
Tralee = "Tral",
Tramore = "Tram",
Wexford = "Wex"
)

betfair_odds <- c(
1.01,
1.02,
1.03,
1.04,
1.05,
1.06,
1.07,
1.08,
1.09,
1.10,
1.11,
1.12,
1.13,
1.14,
1.15,
1.16,
1.17,
1.18,
1.19,
1.20,
1.21,
1.22,
1.23,
1.24,
1.25,
1.26,
1.27,
1.28,
1.29,
1.30,
1.31,
1.32,
1.33,
1.34,
1.35,
1.36,
1.37,
1.38,
1.39,
1.40,
1.41,
1.42,
1.43,
1.44,
1.45,
1.46,
1.47,
1.48,
1.49,
1.50,
1.51,
1.52,
1.53,
1.54,
1.55,
1.56,
1.57,
1.58,
1.59,
1.60,
1.61,
1.62,
1.63,
1.64,
1.65,
1.66,
1.67,
1.68,
1.69,
1.70,
1.71,
1.72,
1.73,
1.74,
1.75,
1.76,
1.77,
1.78,
1.79,
1.80,
1.81,
1.82,
1.83,
1.84,
1.85,
1.86,
1.87,
1.88,
1.89,
1.90,
1.91,
1.92,
1.93,
1.94,
1.95,
1.96,
1.97,
1.98,
1.99,
2.00,
2.02,
2.04,
2.06,
2.08,
2.10,
2.12,
2.14,
2.16,
2.18,
2.20,
2.22,
2.24,
2.26,
2.28,
2.30,
2.32,
2.34,
2.36,
2.38,
2.40,
2.42,
2.44,
2.46,
2.48,
2.50,
2.52,
2.54,
2.56,
2.58,
2.60,
2.62,
2.64,
2.66,
2.68,
2.70,
2.72,
2.74,
2.76,
2.78,
2.80,
2.82,
2.84,
2.86,
2.88,
2.90,
2.92,
2.94,
2.96,
2.98,
3.00,
3.05,
3.10,
3.15,
3.20,
3.25,
3.30,
3.35,
3.40,
3.45,
3.50,
3.55,
3.60,
3.65,
3.70,
3.75,
3.80,
3.85,
3.90,
3.95,
4.00,
4.10,
4.20,
4.30,
4.40,
4.50,
4.60,
4.70,
4.80,
4.90,
5.00,
5.10,
5.20,
5.30,
5.40,
5.50,
5.60,
5.70,
5.80,
5.90,
6.00,
6.20,
6.40,
6.60,
6.80,
7.00,
7.20,
7.40,
7.60,
7.80,
8.00,
8.20,
8.40,
8.60,
8.80,
9.00,
9.20,
9.40,
9.60,
9.80,
10.0,
10.5,
11.0,
11.5,
12.0,
12.5,
13.0,
13.5,
14.0,
14.5,
15.0,
15.5,
16.0,
16.5,
17.0,
17.5,
18.0,
18.5,
19.0,
19.5,
20.0,
21.0,
22.0,
23.0,
24.0,
25.0,
26.0,
27.0,
28.0,
29.0,
30.0,
32.0,
34.0,
36.0,
38.0,
40.0,
42.0,
44.0,
46.0,
48.0,
50.0,
55.0,
60.0,
65.0,
70.0,
75.0,
80.0,
85.0,
90.0,
95.0,
100.0,
110.0,
120.0,
130.0,
140.0,
150.0,
160.0,
170.0,
180.0,
190.0,
200.0,
210.0,
220.0,
230.0,
240.0,
250.0,
260.0,
270.0,
280.0,
290.0,
300.0,
310.0,
320.0,
330.0,
340.0,
350.0,
360.0,
370.0,
380.0,
390.0,
400.0,
410.0,
420.0,
430.0,
440.0,
450.0,
460.0,
470.0,
480.0,
490.0,
500.0,
510.0,
520.0,
530.0,
540.0,
550.0,
560.0,
570.0,
580.0,
590.0,
600.0,
610.0,
620.0,
630.0,
640.0,
650.0,
660.0,
670.0,
680.0,
690.0,
700.0,
710.0,
720.0,
730.0,
740.0,
750.0,
760.0,
770.0,
780.0,
790.0,
800.0,
810.0,
820.0,
830.0,
840.0,
850.0,
860.0,
870.0,
880.0,
890.0,
900.0,
910.0,
920.0,
930.0,
940.0,
950.0,
960.0,
970.0,
980.0,
990.0,
1000.0
)
bwlewis/betfair documentation built on May 13, 2019, 9:05 a.m.