cleanBowlerData: Clean the bowlers data frame

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/cleanBowlerData.R

Description

Clean the bowler's CSV fileand remove rows DNB(Did not bowl) & TDNB (Team did not bowl). Also normalize all 8 ball over to a 6 ball over for earlier bowlers

Usage

1

Arguments

file

The <bowler>.csv file

Details

More details can be found in my short video tutorial in Youtube https://www.youtube.com/watch?v=q9uMPFVsXsI

Value

A cleaned bowler data frame with complete cases

Note

Maintainer: Tinniam V Ganesh <tvganesh.85@gmail.com>

Author(s)

Tinniam V Ganesh

References

https://www.espncricinfo.com/ci/content/stats/index.html
https://gigadom.in/

See Also

clean

Examples

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

# Get bowling data and store in file for future
# kumble <- getPlayerData(30176,dir="./mytest", file="kumble.csv",type="bowling", 
# homeOrAway=c(1),result=c(1,2))

pathToFile <- system.file("data", "kumble.csv", package = "cricketr")
cleanBowlerData(pathToFile)

# Note: This example uses the file kumble.csv from the /data directory. However
# you can use any directory as long as the data file exists in that directory.

## End(Not run)

tvganesh/cricketr documentation built on March 27, 2021, 6:29 p.m.