R: Get datframe of deliveries bowled and wickets taken
getDeliveryWickets
R 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
## 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)