## Let's calculate Mike Trout's isolated power in 2014
## He had a SLG = .561 and an AVG = .287
## We should get .274
iso(.561,.287)
## The function is currently defined as
function (slg, avg) 
{
    iso <- slg - avg
    return(iso)
  }
Run the code above in your browser using DataLab