Article

Tests

BeginPackage["Wikicode`Tungsten`"]

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

Begin["`Private`"]

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

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

End[]
EndPackage[]