Article

Tests

BeginPackage["Wikicode`Strontium`"]

Production::usage="Production[date] gives the annual world strontium production from the specified date."

Begin["`Private`"]

Production[from_Integer]:=Select[strontiumData["Production"],DateDifference[{from},#[[1]]] >= 0&]

strontiumData["Production"] = 
 MapAt[{Round@#} &, #, 1] & /@ 
  Import["http://minerals.usgs.gov/ds/2005/140/ds140-stron.xlsx"][[1, 
   41 ;; 101, {1, 10}]]

End[]
EndPackage[]