Last data update: 2014.03.03

R: Moving average of batsman
batsmanMovingAverageR Documentation

Moving average of batsman

Description

This function plots the runs scored by the batsman over the career as a time series. A loess regression line is plotted on the moving average of the batsman the batsman

Usage

batsmanMovingAverage(df, name= "A Leg Glance")

Arguments

df

Data frame

name

Name of batsman

Value

None

Note

Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com

Author(s)

Tinniam V Ganesh

References

http://cricsheet.org/
https://gigadom.wordpress.com/
https://github.com/tvganesh/yorkrData

See Also

batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
batsmanRunsPredict
teamBatsmenPartnershipAllOppnAllMatches

Examples

## Not run: 
#Get the data frame for Kohli
kohli <- getBatsmanDetails(team="India",name="Kohli",dir=pathToFile)
batsmanMovingAverage(kohli,"Kohli")

## End(Not run)

Results