batsmanRunsPredict: Predict deliveries to runs scored

View source: R/batsmansRunsPredict.R

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

Arguments

df

Data frame

name

Name of batsman

dateRange

Date interval to consider

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

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

## End(Not run)


tvganesh/yorkr documentation built on May 13, 2023, 12:19 p.m.