Learn R Programming

yorkr (version 0.0.42)

batsmanRunsPredict: Predict deliveries to runs scored

Description

This function uses a classification tree to predict the number of deliveries required for the batsman to score the runs. It uses the package rpart to perform the classification

Usage

batsmanRunsPredict(df, name= "A Leg Glance",dateRange)

Value

None

Arguments

df

Data frame

name

Name of batsman

dateRange

Date interval to consider

Author

Tinniam V Ganesh

References

https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/

See Also

batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
batsmanRunsPredict
teamBatsmenPartnershipAllOppnAllMatches

Examples

Run this code
if (FALSE) {
#Get the data frame for Kohli
kohli <- getBatsmanDetails(team="India",name="Kohli",dir=pathToFile)
batsmanRunsVsStrikeRate(kohli,"Kohli",dateRange)
}

Run the code above in your browser using DataLab