October 2019
Beginner to intermediate
674 pages
16h 43m
English
Here's how we can do this in R:
>goal_stats[goal_stats$GoalsPerGame>=0.5,]
Club Player Goals GamesPlayedGoalsPerGame
1 Atletico Madrid Diego Costa 8 9 0.8888889
6 Real Madrid Cristiano Ronaldo 17 11 1.5454545
7 Real Madrid Gareth Bale 6 12 0.5000000
17 Chelsea Demba Ba 3 6 0.5000000
>subset(goal_stats,GoalsPerGame>=0.5)
Club Player Goals GamesPlayedGoalsPerGame
1 Atletico Madrid Diego Costa 8 9 0.8888889
6 Real Madrid Cristiano Ronaldo 17 11 1.5454545
7 Real Madrid Gareth Bale 6 12 0.5000000
17 Chelsea Demba Ba 3 6 0.5000000
Read now
Unlock full access