[Blotter-commits] r1508 - pkg/FinancialInstrument/inst/parser
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Thu Sep 19 23:22:29 CEST 2013
Author: peter_carl
Date: 2013-09-19 23:22:29 +0200 (Thu, 19 Sep 2013)
New Revision: 1508
Modified:
pkg/FinancialInstrument/inst/parser/parse.SP500TR.R
Log:
- S&P finally made this file easily available again
Modified: pkg/FinancialInstrument/inst/parser/parse.SP500TR.R
===================================================================
--- pkg/FinancialInstrument/inst/parser/parse.SP500TR.R 2013-09-16 17:24:52 UTC (rev 1507)
+++ pkg/FinancialInstrument/inst/parser/parse.SP500TR.R 2013-09-19 21:22:29 UTC (rev 1508)
@@ -5,15 +5,14 @@
# Peter Carl
# Load needed packages:
-require(zoo)
+require(xts)
require(gdata)
# @TODO: Set the working directory
#
# Download the first sheet in the xls workbook directly from the web site:
-# x = read.xls("http://www2.standardandpoors.com/spf/xls/index/MONTHLY.xls")
-x = read.xls("http://www.standardandpoors.com/servlet/BlobServer?blobheadername3=MDT-Type&blobcol=urldata&blobtable=MungoBlobs&blobheadervalue2=inline%3B+filename%3DMONTHLY.xls&blobheadername2=Content-Disposition&blobheadervalue1=application%2Fexcel&blobkey=id&blobheadername1=content-type&blobwhere=1243862365806&blobheadervalue3=UTF-8")
+x = read.xls("http://www.spindices.com/documents/additional-material/monthly.xlsx?force_download=true")
# That gives us something like the following:
# > head(x)
More information about the Blotter-commits
mailing list