Last data update: 2014.03.03

R: Predict deliveries to runs scored
batsmanRunsPredictR Documentation

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

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

http://cricsheet.org/
https://gigadom.wordpress.com/
https://github.com/tvganesh/yorkrData

See Also

batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
batsmanRunsPredict
teamBatsmenPartnershipAllOppnAllMatches

Examples

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

## End(Not run)

Results