batsmanRunsPredict: Predict deliveries to runs scored

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

View source: R/batsmansRunsPredict.R

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

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

Arguments

df

Data frame

name

Name of batsman

Value

None

Note

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

Author(s)

Tinniam V Ganesh

References

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

See Also

batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
batsmanRunsPredict
teamBatsmenPartnershipAllOppnAllMatches

Examples

1
2
3
4
5
6
## Not run: 
#Get the data frame for Kohli
kohli <- getBatsmanDetails(team="India",name="Kohli",dir=pathToFile)
batsmanRunsVsStrikeRate(kohli,"Kohli")

## End(Not run)

yorkr documentation built on Sept. 20, 2021, 5:08 p.m.