Learn R Programming

cricketr (version 0.0.26)

cleanTeamData: Clean the team data for Test, ODI and T20

Description

This function cleans the team data for Test, ODI and T20

Usage

cleanTeamData(df,matchType)

Arguments

df

Data frame

matchType

Match type - Test, ODI, T20

Value

The cleaned Data frame

References

https://www.espncricinfo.com/ci/content/stats/index.html https://gigadom.in/

See Also

teamWinLossStatusVsOpposition teamWinLossStatusAtGrounds plotTimelineofWinsLosses

Examples

Run this code
# NOT RUN {
#Get the team data for India for Tests
df<-getTeamDataHomeAway(file="india.csv",teamName="India",matchType='Test')
df1 <-cleanTeamData(df,"Test")
# }

Run the code above in your browser using DataLab