Learn R Programming

cricketr (version 0.0.26)

relativeBatsmanCumulativeAvgRuns: Relative batsman's cumulative average runs

Description

This function computes and plots the relative cumulative average runs of batsmen

Usage

relativeBatsmanCumulativeAvgRuns(frames, names)

Arguments

frames

This is a list of <batsman>.csv files obtained with an initial getPlayerData()

names

A list of batsmen names who need to be compared

Value

None

References

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

See Also

relativeBatsmanCumulativeStrikeRate relativeBowlerCumulativeAvgEconRate relativeBowlerCumulativeAvgWickets

Examples

Run this code
# NOT RUN {
# Retrieve the file path of a data file installed with cricketr
tendulkar <- system.file("data", "tendulkar.csv", package = "cricketr")
ganguly <- system.file("data", "ganguly.csv", package = "cricketr")

batsmen <- list(tendulkar,ganguly)
names <- list("Tendulkar","Ganguly")
relativeBatsmanCumulativeAvgRuns(batsmen,names)
# }

Run the code above in your browser using DataLab