getDeliveryWickets: Get datframe of deliveries bowled and wickets taken

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

View source: R/getDeliveryWickets.R

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

1

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

1
2
3
4
5
6
7
8
## 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)

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