Sport
  • Login
  • Home
  • News
  • Sport
  • Worklife
  • Travel
  • Reel
  • Future
  • Culture
  • More
    • Music
Sunday, December 21, 2025
No Result
View All Result

SPORT

7 °c
London
8 ° Thu
11 ° Fri
13 ° Sat
14 ° Sun
  • Home
  • Football
  • Formula1
  • Cricket
  • Rugby U
  • Tennis
  • Video
  • Golf
  • Boxing
  • Basketball
  • Cycling
  • World Sport
    • All
    • African Football
    • European Football
    • Sport Africa

    Turkish betting scandal: ‘Big decisions’ and ‘very strict’ sanctions needed, says Galatasaray assistant boss

    Africa Cup of Nations to be held every four years from 2028

    Kylian Mbappe: Paris St-Germain ordered to pay France star 60m euros

    Afcon 2025: Can Morocco seal African dominance on home soil?

    Ousmane Dembele named Fifa Best men’s player of the year

    PDC World Darts Championship 2026: Michael van Gerwen beats Mitsuhiko Tatsunami in first round

    Maccabi Tel Aviv given suspended one-match away fan ban by Uefa for racist chant

    India v South Africa T20 abandoned because of ‘excessive fog’

    Robert Lewandowski: MLS side Chicago Fire in pole position to sign Barcelona striker

All Sport
  • Home
  • Football
  • Formula1
  • Cricket
  • Rugby U
  • Tennis
  • Video
  • Golf
  • Boxing
  • Basketball
  • Cycling
  • World Sport
    • All
    • African Football
    • European Football
    • Sport Africa

    Turkish betting scandal: ‘Big decisions’ and ‘very strict’ sanctions needed, says Galatasaray assistant boss

    Africa Cup of Nations to be held every four years from 2028

    Kylian Mbappe: Paris St-Germain ordered to pay France star 60m euros

    Afcon 2025: Can Morocco seal African dominance on home soil?

    Ousmane Dembele named Fifa Best men’s player of the year

    PDC World Darts Championship 2026: Michael van Gerwen beats Mitsuhiko Tatsunami in first round

    Maccabi Tel Aviv given suspended one-match away fan ban by Uefa for racist chant

    India v South Africa T20 abandoned because of ‘excessive fog’

    Robert Lewandowski: MLS side Chicago Fire in pole position to sign Barcelona striker

No Result
View All Result

SPORT

No Result
View All Result
Home Video

r programming language web scraping bbc football scores with excel which apply dplyr and tidyr to

May 14, 2022
in Video
1 min read
222 2
0
477
SHARES
1.4k
VIEWS
Share on FacebookShare on Twitter



We look at football scores on the bbc web page
as an example of messy data which is not all neatly
organised in tables.

There are countless ways to approach this and I began
thinking of applying Regex to strip out the bits of data
which I was interested in which would take a few iterations
to get to what wanted BUT then tried using excel to do it
which worked no bother!

I then worked what I had to get the data into R and applied
the dplyr and tidyr packages to get useful outputs so that I
could see how often arsenal won at home and away. The
approach shown can easily be extended to show how ofen
have 3 or more goals, how often have clean sheets, how
often both teams score and whatever we want?

For example we could add when red cards are shown and
look to see how often a team with 10 players ends up losing
to see how that differs from normal? Basically we can use
data to guide us.

Finally we look at JSON and some of the services that
are out there which can provide us with football data in a
more machine friendly way and at a webpage which provides
us with the kind of data that we just produced though being
able to do it ourselves means that we can do things that they
haven’t?

source

Previous Post

Sheffield United 1-2 Nottingham Forest: Reds take lead into second leg

Next Post

FA Cup final: Chelsea v Liverpool – rate the players from Wembley match

Next Post

FA Cup final: Chelsea v Liverpool - rate the players from Wembley match

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Great Britain 81-84 South Sudan: Hosts defeated at Copper Box Arena

    477 shares
    Share 191 Tweet 119
  • Guernsey beat Denmark to win 2026 ICC T20 World Cup qualifier

    477 shares
    Share 191 Tweet 119
  • Wales rugby launch new dual kit after squad feedback on period anxiety

    477 shares
    Share 191 Tweet 119
  • LIV Golf Greenbrier: Brooks Koepka beats Jon Rahm in a play-off to win fifth LIV Golf title

    477 shares
    Share 191 Tweet 119
  • French Open 2025 results: Aryna Sabalenka beats Zheng Qinwen to set up semi-final against Iga Swiatek or Elina Svitolina

    477 shares
    Share 191 Tweet 119
  • Trending
  • Comments
  • Latest

Champions League: Nearly 2,000 Liverpool fans set to sue Uefa

September 25, 2022

Eddie Hearn: Chantelle Cameron deserved headline billing; Dillian Whyte v Tyson Fury ‘perfect fight’

October 29, 2021

Teams summoned after Lewis Hamilton and Max Verstappen British GP collision

July 28, 2021

The Hundred: Adam Milne, Colin Ingram, Danni Wyatt, Sarah Taylor – watch the best catches so far

July 29, 2021

NFL: Seattle Seahawks book play-off spot with overtime win over Los Angeles Rams

December 21, 2025

More Than The Score – Asafa Powell on Hurricane Melissa’s aftermath in Jamaica

December 21, 2025

Turkish betting scandal: ‘Big decisions’ and ‘very strict’ sanctions needed, says Galatasaray assistant boss

December 21, 2025

Africa Cup of Nations to be held every four years from 2028

December 21, 2025

Categories

  • African Football
  • American Football
  • Athletics
  • Basketball
  • Boxing
  • Cricket
  • Cycling
  • European Football
  • Football
  • Formula1
  • Golf
  • Rugby U
  • Sport Africa
  • Swimming
  • Tennis
  • Top News
  • Video
  • World Sport
Sport

© 2020 JBC - JOOJ Clone ScriptsJOOJ.us.

Explore the JBC

  • Home
  • News
  • Sport
  • Worklife
  • Travel
  • Reel
  • Future
  • Culture
  • More

Follow Us

  • American Football
  • Athletics
  • Basketball
  • Boxing
  • Cricket
  • Cycling
  • Football
  • Formula1
  • Golf
  • Rugby U
  • Tennis
  • Top News
  • Video
  • World Sport
  • Swimming
  • Login

© 2020 JBC - JOOJ Clone ScriptsJOOJ.us.

Welcome Back!

Login to your account below

Forgotten Password?

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Sport
More Sites

    MORE

  • Home
  • News
  • Sport
  • Worklife
  • Travel
  • Reel
  • Future
  • Culture
  • More
    • Music
  • Sport

    JBC Sport