Article

Tests

BeginPackage["Wikicode`Tin`"]

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

Begin["`Private`"]

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

tinData["Production"] = 
 MapAt[{Round@#} &, #, 1] & /@ 
  Import["http://minerals.usgs.gov/ds/2005/140/ds140-tin.xlsx"][[1, 
   11 ;; 117, {1, 12}]]

End[]
EndPackage[]