Learn R Programming

cricketr (version 0.0.26)

batsmanCumulativeAverageRuns: Batsman's cumulative average runs

Description

This function computes and plots the cumulative average runs of a batsman

Usage

batsmanCumulativeAverageRuns(file,name= "A Leg Glance")

Arguments

file

Data frame

name

Name of batsman

Value

None

References

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

See Also

batsmanCumulativeStrikeRate bowlerCumulativeAvgEconRate bowlerCumulativeAvgWickets

Examples

Run this code
# NOT RUN {
# retrieve the file path of a data file installed with cricketr
pathToFile <- system.file("data", "tendulkar.csv", package = "cricketr")
batsmanCumulativeAverageRuns(pathToFile, "Sachin Tendulkar")
# }

Run the code above in your browser using DataLab