Sabermetric Functions for R

calc_avg | Calculate Batting Average |

calc_obp | Calculate On Base Percentage |

calc_pa | Calculate estimated Plate Appearances |

calc_slg | Calculate Slugging Percentage |

calc_tb | Calculate Total Bases |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.