Article

Tests

BeginPackage["Wikicode`Indium`"]

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

Begin["`Private`"]

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

indiumData["Production"] = 
 MapAt[{Round@#} &, #, 1] & /@ 
  Import["http://minerals.usgs.gov/ds/2005/140/ds140-indiu.xlsx"][[1, 
   42 ;; 81, {1, 9}]]

End[]
EndPackage[]