get_rugby: Scrape Bath Rugby match dates, kick-off times and results

Description Usage Arguments Value Examples

View source: R/web_scraping.R

Description

Web scraping function to gather dates and times of Bath Rugby matches, and whether or not Bath won, from the Bath Rugby website.

Note: This function's code is heavily commented so that if you want to, you can use it as a tutorial/guide for writing similar functions of your own! You can view the commented code on the GitHub repo here.

Usage

1

Arguments

x

A vector of years of seasons to retrieve records from.

Value

A data frame of kick-off date-times and match outcomes.

Examples

1
2
3
4
5
6
## Not run: 
# Return matches from 2014/15, 2015/16 seasons
seasons <- c(2015, 2016)
rugby <- get_rugby(seasons)

## End(Not run)

owenjonesuob/BANEScarparking documentation built on April 21, 2020, 10:15 a.m.