formatVenue: COnverts Betfair formatted venues to OddsChecker compatible...

Description Usage Arguments Value Examples

Description

formatVenue is a simple function that converts Betfair API venues to OddsChecker compatible venues (lower case hypehnated separated strings). The venue nomenclature appears quite consistent in the UK and Ireland. However, especially in the Americas, Betfair and Oddschecker may have different names for the same venue. To allow Betfair API data to be combined with scraped OddsChecker data, we need to ensure that venue names match up. The list of venues is not necessarily exhausitive and potential omissions should be raised as issue or pull request.

Usage

1
formatVenue(venue)

Arguments

venue

string. The name of the horse racing venue to be converted.

Value

A string of the Oddschecker compatible venue is returned.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 

# Simple venue conversion

formatVenue("Emerald Downs")

# Example where Betfair and Oddschecker differ significantly

formatVenue("Parx Racing At Philadelphia Park")

## End(Not run)

dashee87/betScrapeR documentation built on May 14, 2019, 6:12 p.m.