Article

Tests

BeginPackage["Wikicode`Vanadium`"]

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

Begin["`Private`"]

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

vanadiumData["Production"] = 
 MapAt[{Round@#} &, #, 1] & /@ 
  Import["http://minerals.usgs.gov/ds/2005/140/ds140-vanad.xlsx"][[1, 
   66 ;; 116, {1, 9}]]

End[]
EndPackage[]