getDeliveryWickets: Get datframe of deliveries bowled and wickets taken

View source: R/getDeliveryWickets.R

getDeliveryWicketsR Documentation

Get datframe of deliveries bowled and wickets taken

Description

This function creates a data frame of deliveries bowled and wickets taken. This data frame is then used by bowlerWktsPredict to predict the number of deliveries to wickets taken

Usage

getDeliveryWickets(team,dir=".",name,save=FALSE)

Arguments

team

The team for which dataframe is to be obtained

dir

The source directory in which the match .RData files exist

name

The name of the bowler

save

Whether the data frame needs to be saved to a file or nor

Value

dataframe The dataframe of delivery wickets

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

bowlerMovingAverage
getTeamBowlingDetails
bowlerWktsPredict
teamBowlersWicketRunsOppnAllMatches

Examples

## Not run: 
# Create a data frame of deliveries to wickets from the stored .RData files
jadeja1 <- getDeliveryWickets(team="India",dir="../data",name="Jadeja",save=FALSE)

# Use this to create a classification tree of deliveries to wickets
bowlerWktsPredict(jadeja1,"RA Jadeja")

## End(Not run)


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