View source: R/batsmanMovingAverage.R
batsmanMovingAverage | R Documentation |
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
batsmanMovingAverage(df, name= "A Leg Glance",dateRange,staticIntv=1)
df |
Data frame |
name |
Name of batsman |
dateRange |
Date interval to consider |
staticIntv |
Static or interactive -staticIntv =1 (static plot) & staticIntv =2 (interactive plot) |
None
Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com
Tinniam V Ganesh
https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/
batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
batsmanRunsPredict
teamBatsmenPartnershipAllOppnAllMatches
## Not run:
#Get the data frame for Kohli
kohli <- getBatsmanDetails(team="India",name="Kohli",dir=pathToFile)
batsmanMovingAverage(kohli,"Kohli",dateRange)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.