lifetimeBattingAverage: lifetimeBattingAverage

Description Usage Arguments Examples

View source: R/lifetimeBattingAverage.r

Description

Creates a dataframe giving a career batting average

Usage

1
lifetimeBattingAverage(NOFlag, runs)

Arguments

NOFlag

Flag showing if the innings was not out. By default 1 is not out

runs

Runs scored in innings

BattingBowling

Batting or bowling figures. Default is batting

Examples

1
2
playerInfo <- getPlayerInfo(PlayerNumber="11728", BattingBowling = "Batting", ViewType = "Inn", Clean="Y")
playerInfo$Average <- lifetimeBattingAverage(NOFlag=playerInfo$NOFlag, runs = playerInfo$Runs)

nickzani/Cricinfo documentation built on May 23, 2017, 2:48 p.m.