cricketr (version 0.0.23)

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

http://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 DataCamp Workspace