cleanBowlerData {cricketr}R Documentation

Clean the bowlers data frame

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

cleanBowlerData(file)

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

## 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)

[Package cricketr version 0.0.26 Index]