Article

Tests

BeginPackage["Wikicode`Gold`"]

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

Begin["`Private`"]

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

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

End[]
EndPackage[]