Learn R Programming

mlbstats (version 0.1.0)

risp: Calculates batting average with runners in scoring position

Description

Computes batting average accounting for runners in scoring position

Usage

risp(hrisp, abrisp)

Arguments

hrisp

Number of hits with runners in scoring position (on either 2nd or 3rd base)

abrisp

Number of at bats with runners in scoring position (on either 2nd or 3rd base)

Value

risp

Examples

Run this code
# NOT RUN {
risp(35, 120)
# }

Run the code above in your browser using DataLab