batsmanMovingAverage: Moving average of batsman

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/batsmanMovingAverage.R

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

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

Arguments

df

Data frame

name

Name of batsman

staticIntv

Static or interactive -staticIntv =1 (static plot) & staticIntv =2 (interactive plot)

Value

None

Note

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

Author(s)

Tinniam V Ganesh

References

https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/

See Also

batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
batsmanRunsPredict
teamBatsmenPartnershipAllOppnAllMatches

Examples

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

## End(Not run)

yorkr documentation built on July 10, 2021, 5:06 p.m.