Article

Tests

BeginPackage["Wikicode`Copper`"]

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

Begin["`Private`"]

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

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

End[]
EndPackage[]