Skip to content

Instantly share code, notes, and snippets.

# The packages we'll be using
packages <- c("rvest","dplyr","tidyr","pipeR","ggplot2","stringr","data.table")
# From those packages, which ones are not yet installed?
newPackages <- packages[!(packages %in% as.character(installed.packages()[,"Package"]))]
# If any weren't already installed, install them now
if(length(newPackages)) install.packages(newPackages)
# Now make sure all necessary packages are loaded
@johnburnmurdoch
johnburnmurdoch / earth_worm.csv
Created June 12, 2019 16:53
Cricket mach summary
team date venue Over runs wicket wickets ball
Australia 2019-06-12 The Cooper Associates County Ground, Taunton 0.1 0 0 0 1
Australia 2019-06-12 The Cooper Associates County Ground, Taunton 0.2 0 0 0 2
Australia 2019-06-12 The Cooper Associates County Ground, Taunton 0.3 0 0 0 3
Australia 2019-06-12 The Cooper Associates County Ground, Taunton 0.4 0 0 0 4
Australia 2019-06-12 The Cooper Associates County Ground, Taunton 0.5 0 0 0 5
Australia 2019-06-12 The Cooper Associates County Ground, Taunton 0.6 0 0 0 6
Australia 2019-06-12 The Cooper Associates County Ground, Taunton 1.1 0 0 0 7
Australia 2019-06-12 The Cooper Associates County Ground, Taunton 1.2 4 0 0 8
Australia 2019-06-12 The Cooper Associates County Ground, Taunton 1.3 5 0 0 9
@johnburnmurdoch
johnburnmurdoch / earth_worm.csv
Created June 6, 2019 17:55
Cricket mach summary
team date venue Over runs wicket wickets ball
Australia 2019-06-06 Trent Bridge, Nottingham 0.1 6 0 0 1
Australia 2019-06-06 Trent Bridge, Nottingham 0.2 7 0 0 2
Australia 2019-06-06 Trent Bridge, Nottingham 0.3 9 0 0 3
Australia 2019-06-06 Trent Bridge, Nottingham 0.4 9 0 0 4
Australia 2019-06-06 Trent Bridge, Nottingham 0.5 9 0 0 5
Australia 2019-06-06 Trent Bridge, Nottingham 0.6 10 0 0 6
Australia 2019-06-06 Trent Bridge, Nottingham 1.1 11 0 0 7
Australia 2019-06-06 Trent Bridge, Nottingham 1.2 11 0 0 8
Australia 2019-06-06 Trent Bridge, Nottingham 1.3 12 0 0 9
@johnburnmurdoch
johnburnmurdoch / earth_worm.csv
Last active June 6, 2019 16:59
Cricket mach summary
team date venue Over runs wicket wickets ball
Australia 2019-06-06 Trent Bridge, Nottingham 0.1 6 0 0 1
Australia 2019-06-06 Trent Bridge, Nottingham 0.2 7 0 0 2
Australia 2019-06-06 Trent Bridge, Nottingham 0.3 9 0 0 3
Australia 2019-06-06 Trent Bridge, Nottingham 0.4 9 0 0 4
Australia 2019-06-06 Trent Bridge, Nottingham 0.5 9 0 0 5
Australia 2019-06-06 Trent Bridge, Nottingham 0.6 10 0 0 6
Australia 2019-06-06 Trent Bridge, Nottingham 1.1 11 0 0 7
Australia 2019-06-06 Trent Bridge, Nottingham 1.2 11 0 0 8
Australia 2019-06-06 Trent Bridge, Nottingham 1.3 12 0 0 9
@johnburnmurdoch
johnburnmurdoch / earth_worm.csv
Created June 6, 2019 15:48
Cricket mach summary
team date venue Over runs wicket wickets ball
Australia 2019-06-06 Trent Bridge, Nottingham 0.1 6 0 0 1
Australia 2019-06-06 Trent Bridge, Nottingham 0.2 7 0 0 2
Australia 2019-06-06 Trent Bridge, Nottingham 0.3 9 0 0 3
Australia 2019-06-06 Trent Bridge, Nottingham 0.4 9 0 0 4
Australia 2019-06-06 Trent Bridge, Nottingham 0.5 9 0 0 5
Australia 2019-06-06 Trent Bridge, Nottingham 0.6 10 0 0 6
Australia 2019-06-06 Trent Bridge, Nottingham 1.1 11 0 0 7
Australia 2019-06-06 Trent Bridge, Nottingham 1.2 11 0 0 8
Australia 2019-06-06 Trent Bridge, Nottingham 1.3 12 0 0 9
@johnburnmurdoch
johnburnmurdoch / earth_worm.csv
Created June 6, 2019 15:29
Cricket mach summary
team date venue Over runs wicket wickets ball
Australia 2019-06-06 Trent Bridge, Nottingham 0.1 6 0 0 1
Australia 2019-06-06 Trent Bridge, Nottingham 0.2 7 0 0 2
Australia 2019-06-06 Trent Bridge, Nottingham 0.3 9 0 0 3
Australia 2019-06-06 Trent Bridge, Nottingham 0.4 9 0 0 4
Australia 2019-06-06 Trent Bridge, Nottingham 0.5 9 0 0 5
Australia 2019-06-06 Trent Bridge, Nottingham 0.6 10 0 0 6
Australia 2019-06-06 Trent Bridge, Nottingham 1.1 11 0 0 7
Australia 2019-06-06 Trent Bridge, Nottingham 1.2 11 0 0 8
Australia 2019-06-06 Trent Bridge, Nottingham 1.3 12 0 0 9
@johnburnmurdoch
johnburnmurdoch / earth_worm.csv
Created June 6, 2019 15:17
Cricket mach summary
team date venue Over runs wicket wickets ball
Australia 2019-06-06 Trent Bridge, Nottingham 0.1 6 0 0 1
Australia 2019-06-06 Trent Bridge, Nottingham 0.2 7 0 0 2
Australia 2019-06-06 Trent Bridge, Nottingham 0.3 9 0 0 3
Australia 2019-06-06 Trent Bridge, Nottingham 0.4 9 0 0 4
Australia 2019-06-06 Trent Bridge, Nottingham 0.5 9 0 0 5
Australia 2019-06-06 Trent Bridge, Nottingham 0.6 10 0 0 6
Australia 2019-06-06 Trent Bridge, Nottingham 1.1 11 0 0 7
Australia 2019-06-06 Trent Bridge, Nottingham 1.2 11 0 0 8
Australia 2019-06-06 Trent Bridge, Nottingham 1.3 12 0 0 9
@johnburnmurdoch
johnburnmurdoch / earth_worm.csv
Created June 6, 2019 14:43
Cricket mach summary
team date venue Over runs wicket wickets ball
Australia 2019-06-06 Trent Bridge, Nottingham 0.1 6 0 0 1
Australia 2019-06-06 Trent Bridge, Nottingham 0.2 7 0 0 2
Australia 2019-06-06 Trent Bridge, Nottingham 0.3 9 0 0 3
Australia 2019-06-06 Trent Bridge, Nottingham 0.4 9 0 0 4
Australia 2019-06-06 Trent Bridge, Nottingham 0.5 9 0 0 5
Australia 2019-06-06 Trent Bridge, Nottingham 0.6 10 0 0 6
Australia 2019-06-06 Trent Bridge, Nottingham 1.1 11 0 0 7
Australia 2019-06-06 Trent Bridge, Nottingham 1.2 11 0 0 8
Australia 2019-06-06 Trent Bridge, Nottingham 1.3 12 0 0 9
@johnburnmurdoch
johnburnmurdoch / earth_worm.csv
Created June 6, 2019 14:18
Cricket mach summary
team date venue Over runs wicket wickets ball
Australia 2019-06-06 Trent Bridge, Nottingham 0.1 6 0 0 1
Australia 2019-06-06 Trent Bridge, Nottingham 0.2 7 0 0 2
Australia 2019-06-06 Trent Bridge, Nottingham 0.3 9 0 0 3
Australia 2019-06-06 Trent Bridge, Nottingham 0.4 9 0 0 4
Australia 2019-06-06 Trent Bridge, Nottingham 0.5 9 0 0 5
Australia 2019-06-06 Trent Bridge, Nottingham 0.6 10 0 0 6
Australia 2019-06-06 Trent Bridge, Nottingham 1.1 11 0 0 7
Australia 2019-06-06 Trent Bridge, Nottingham 1.2 11 0 0 8
Australia 2019-06-06 Trent Bridge, Nottingham 1.3 12 0 0 9
@johnburnmurdoch
johnburnmurdoch / earth_worm.csv
Created June 6, 2019 13:43
Cricket mach summary
team date venue Over runs wicket wickets ball
South Africa 2019-06-05 The Rose Bowl, Southampton 0.1 1 0 0 1
South Africa 2019-06-05 The Rose Bowl, Southampton 0.2 1 0 0 2
South Africa 2019-06-05 The Rose Bowl, Southampton 0.3 1 0 0 3
South Africa 2019-06-05 The Rose Bowl, Southampton 0.4 2 0 0 4
South Africa 2019-06-05 The Rose Bowl, Southampton 0.5 2 0 0 5
South Africa 2019-06-05 The Rose Bowl, Southampton 0.6 2 0 0 6
South Africa 2019-06-05 The Rose Bowl, Southampton 1.1 2 0 0 7
South Africa 2019-06-05 The Rose Bowl, Southampton 1.2 2 0 0 8
South Africa 2019-06-05 The Rose Bowl, Southampton 1.3 2 0 0 9