Article

Tests

BeginPackage["Wikicode`Potash`"]

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

Begin["`Private`"]

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

potashData["Production"] = 
 MapAt[{Round@#} &, #, 1] & /@ 
  Import["http://minerals.usgs.gov/ds/2005/140/ds140-potas.xlsx"][[1, 
   25 ;; 117, {1, 9}]]

End[]
EndPackage[]